How to use the graphback.GraphbackContextCreator function in graphback

To help you get started, we’ve selected a few graphback examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aerogear / graphback / packages / graphback-schema / src / plugin.ts View on Github external
export const plugin = (schema: GraphQLSchema) => {

  const inputContext = new GraphbackContextCreator(printSchema(schema)).createInputContext()

  const context: TargetContext = buildTargetContext(inputContext.reverse())

  return generateSchema(context)
}