how to serve different schemas based on user #5684
-
hey, I have a relational database that I want to expose via GraphQL. An item will have attributes, everything is scoped for a user. The tables looks like I wonder if I can dynamically generate the schema based on creation, update or deletion of attributes, for each user. For example:
I want them to be able to query like this:
thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We don't support dynamic schemas. There's a lot of complexity there around how plugins, reporting, etc would deal with a dynamic schema. See eg #5071 (comment) For what it's worth, having a super dynamic schema will make it challenging to do things like code generation, which is one of the main strengths of GraphQL. |
Beta Was this translation helpful? Give feedback.
We don't support dynamic schemas. There's a lot of complexity there around how plugins, reporting, etc would deal with a dynamic schema. See eg #5071 (comment)
For what it's worth, having a super dynamic schema will make it challenging to do things like code generation, which is one of the main strengths of GraphQL.