Currently all of the type-builders in libgraphql-core use an interface somewhat uniquely designed for an older version of schema::SchemaBuilder. They are also not exposed publicly -- which means there's not a good API for procedurally constructing types to be passed into a SchemaBuilder iteratively in code (vs defining via GraphQL's IDL language).
To square out our public API a bit more, we need to:
- Convert each type-builder in
libgraphql_core::types::* to use a more conventional ::new() -> .build(self) API.
- Update
SchemaBuilder to use these updated type-builder APIs
- Expose the new, more conventional builders publicly so that they can be passed into a
SchemaBuilder directly
Currently all of the type-builders in
libgraphql-coreuse an interface somewhat uniquely designed for an older version ofschema::SchemaBuilder. They are also not exposed publicly -- which means there's not a good API for procedurally constructing types to be passed into aSchemaBuilderiteratively in code (vs defining via GraphQL's IDL language).To square out our public API a bit more, we need to:
libgraphql_core::types::*to use a more conventional::new()->.build(self)API.SchemaBuilderto use these updated type-builder APIsSchemaBuilderdirectly