chkimes / graphql-net

Convert GraphQL to IQueryable
MIT License
891 stars 86 forks source link

[Feature Request] Schema File #88

Open Disturbing opened 6 years ago

Disturbing commented 6 years ago

Hey There!

Kudos for creating the project, great implementation of GraphQL on .NET.

Is there a way to print out the Schema to see what all is available? Something similar to this:


type Query {
  human(id: ID!): Human
}

type Human {
  name: String
  appearsIn: [Episode]
  starships: [Starship]
}

enum Episode {
  NEWHOPE
  EMPIRE
  JEDI
}

type Starship {
  name: String
}
MarianPalkus commented 6 years ago

Hey, afaik, this library does not provide a way to print out the schema directly.

However, it is possible to execute an introspection query to get the schema and let another tool print out the schema. (e.g. there is an IntellJ Plugin which provides something like this https://github.com/jimkyndemeyer/js-graphql-intellij-plugin - but I'm sure there more tools to do this.)

Notice that introspection is not fully support yet (see https://github.com/ckimes89/graphql-net/pull/83).

I hope this answers your question :)

Can we close this issue?