async-graphql icon indicating copy to clipboard operation
async-graphql copied to clipboard

how to use dynamic schema

Open dwivedianurag opened this issue 2 years ago • 2 comments

can we use dynamic schema with async-graphql? can we pass dynamic schema from a url Can we pass ast to validate query , its types and its field? Can we pass json returned by introspection query to validate query , its types and its field? Can you give an example how to use the same ?

dwivedianurag avatar Aug 03 '23 11:08 dwivedianurag

Today I asked myself some questions about dynamic schema. If I understand correctly:

Yes, it has been implemented. But it seems that some parts are missing: dynamic schema open issues

Besides, I couldn't find any documentation. But I found this:

  • Example
  • https://github.com/async-graphql/async-graphql/discussions/1338

can we pass dynamic schema from a url

Not sure what do you mean. It seems like the interface is imperative. I think while you can build your schema on every request dynamically, it could be inefficient. Maybe you are interested in:

  • https://github.com/async-graphql/async-graphql/issues/1214

Bessonov avatar Aug 10 '23 20:08 Bessonov

i meant that if we write an interospection query and the schema it returns , can we use that with async-graphql , to do the validations and all . Can we use async-graphl to validate the query against the schema on run time. (the schema will be coming as a response to the interospection query)

dwivedianurag avatar Aug 15 '23 16:08 dwivedianurag