###run
- edit /config/default.json
- provide mongodb connection path [mongodb://localhost:27017/assignment by default]
- npm install
- npm start
###current endpoints
/users
/apartments
/locations
/graphql
/graphiql
##What to do - for backend engineers
- add new endpoint /countries which should represent the data from the
countries
collection - add
countries
to /graphql endpoint - add
country
tolocations.graphql.schema
as a representative ofcountry
information - add functionality to use
limit
andskip
as a parameters to fetch data through/graphql
endpoint - If you run the following query, location will always be
null
. Please figure out why this is happening. After you found out how this happens, please describe the reason and how you found the issue.
apartments(owner: $owner) {
items {
location {
title
}
}
}
}