You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was wondering if graphql-tools has any built functionality for my problem.
Basically, I have many graphql servers that are on various different versions of my own software, currently I just have to be careful when writing queries for the servers as some fields might not be available on older deployments.
I was wondering if there was a way to do an introspection query and test any queries on it before sending but also remove any fields that don't exist on that server. And my frontend code can just handle if the server returns that field or not.
The aim is to have one version of the UI that can talk to any version of my graphql servers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I was wondering if graphql-tools has any built functionality for my problem.
Basically, I have many graphql servers that are on various different versions of my own software, currently I just have to be careful when writing queries for the servers as some fields might not be available on older deployments.
I was wondering if there was a way to do an introspection query and test any queries on it before sending but also remove any fields that don't exist on that server. And my frontend code can just handle if the server returns that field or not.
The aim is to have one version of the UI that can talk to any version of my graphql servers.
Beta Was this translation helpful? Give feedback.
All reactions