Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Undocumented GraphQL specification limitations and unsupported GraphQL types #14

@ryankauk

Description

@ryankauk

Issues

  • abstract class of interface type has no method build() but the implementations of them do
abstract class MyInterfaceBuilder {
  void replace(MyInterface other);
  void update(void Function(MyInterfaceBuilder) updates);
  MyInterfaceType get type;
  set type(MyInterfaceType type);
}
@BuiltValue(instantiable: false)
abstract class MyInterfaceType  {
    if (selectionSet is Closure: (String) => String from Function 'selectionSetOf': static.(MyInterfaceTypeExtension)){
        return MyInterfaceTypeExtensionBuilder();
    }
}

when it should be:

@BuiltValue(instantiable: false)
abstract class MyInterfaceType  {
    if (selectionSet is MyInterfaceTypeExtension){
        return MyInterfaceTypeExtensionBuilder();
    }
}

Unsupported GraphQL Types

  • Unions: Errors show up because the types don't implement the union name

Are unions able to be supported? I couldn't find an example or test case with it and have and issue with the property

Limitations on GraphQL Definitions

  • No capitals are allowed on field

  • Field name cannot be named the same thing as a root type

  • filenames must be .graphql

  • No documentation for options

    Overall I don't see these things as a big deal but I think they should be stated somewhere.

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