On 05/10/18 21:54, Jim Rollenhagen wrote:
GraphQL has introspection features that allow clients to pull the schema (types, queries, mutations, etc): https://graphql.org/learn/introspection/

That said, it seems like using this in a client like OpenStackSDK would get messy quickly. Instead of asking for which versions are supported, you'd have to fetch the schema, map it to actual features somehow, and adjust queries based on this info.

A main difference in software architecture when using GraphQL is that a client makes use of a GraphQL client library instead of relaying on a SDK.

I guess there might be a middleground where we could fetch the REST API version, and know from that what GraphQL queries can be made.

// jim

OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe

Reply via email to