Skip to content

[libgraphql-core] Switch all type-builders to a more standard ::new().build() API #35

Description

@jeffmo

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:

  1. Convert each type-builder in libgraphql_core::types::* to use a more conventional ::new() -> .build(self) API.
  2. Update SchemaBuilder to use these updated type-builder APIs
  3. Expose the new, more conventional builders publicly so that they can be passed into a SchemaBuilder directly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions