juniper/introspection/mod.rs
1/// From <https://github.com/graphql/graphql-js/blob/90bd6ff72625173dd39a1f82cfad9336cfad8f65/src/utilities/getIntrospectionQuery.ts#L62>
2pub(crate) const INTROSPECTION_QUERY: &str = include_str!("./query.graphql");
3pub(crate) const INTROSPECTION_QUERY_WITHOUT_DESCRIPTIONS: &str =
4 include_str!("./query_without_descriptions.graphql");
5
6/// The desired GraphQL introspection format for the canonical query
7/// (<https://github.com/graphql/graphql-js/blob/90bd6ff72625173dd39a1f82cfad9336cfad8f65/src/utilities/getIntrospectionQuery.ts#L62>)
8#[derive(Clone, Copy, Debug, Default)]
9pub enum IntrospectionFormat {
10 /// The canonical GraphQL introspection query.
11 #[default]
12 All,
13
14 /// The canonical GraphQL introspection query without descriptions.
15 WithoutDescriptions,
16}