Expose SchemaType (#569)

Executor.schema(&self) is kind of useless without declaring SchemaType as public
This commit is contained in:
Jade Devin Cabatlao 2020-03-18 13:28:40 +08:00 committed by GitHub
parent 27e00419b0
commit b7cc424bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -12,6 +12,11 @@
See [#419](https://github.com/graphql-rust/juniper/pull/419).
- `SchemaType` is now public
- This is helpful when using `context.getSchema()` inside of your field resolvers
See [#569](https://github.com/graphql-rust/juniper/pull/569).
## Breaking Changes
- remove old `graphql_object!` macro, rename `object` proc macro to `graphql_object`

View file

@ -172,7 +172,10 @@ pub use crate::{
LookAheadSelection, LookAheadValue, Registry, Variables,
},
introspection::IntrospectionFormat,
schema::{meta, model::RootNode},
schema::{
meta,
model::{RootNode, SchemaType},
},
types::{
base::{Arguments, GraphQLType, TypeKind},
scalars::{EmptyMutation, ID},