Executing queries on loopback models using GraphQL. This gives you intellisense while forming queries in GraphiQL. See Sample Project
npm install loopback-graphql-ext
- Call init() before application starts (AND after loopback boot is over)
var app = loopback();
.... some other code
var graphqlExt = require('loopback-graphql-ext');
graphqlExt.init(app); //app is loopback application
- Start loopback application as you usually do
- Access GraphQL end point on
http://localhost:3000/graphiql
- where filter
- fields filter
- Limit filter
- Skip filter
- Order filter
Refer to Examples. It is implemented in loopback sample project
- gt/gte/lt/lte/inq etc operators becomes 'keywords' and cannot be part of model property
- Major problem I am facing is to implement flexibility when object can be a string or array. Eg include, order etc
- Making it component so you don't have to initialize from code
- Include filter
- Mutation
- Date type support
- Authentication/Authorization using Access Token