Skip to content

Feature: Allow overriding built-in scalar types #917

Closed
@stubailo

Description

@stubailo

Specifically, sometimes we want to replace ID with something like this that can handle Mongo ObjectIDs: https://github.com/tmeasday/create-graphql-server/blob/79abbd67f4aef3b44fb8605e41eb2ba7978810a6/skel/resolvers/index.js#L8

I think it could be as simple as just allowing the schema to take a type called ID and just using that instead of the built-in.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions