Skip to content

Shortcut for queries returning a GraphQLList ? #15

@ghost

Description

Instead of writing

def schema = DSL.schema {
        queries {
            field('history') {
                type new GraphQLList(GraphQLHistory)
                fetcher {env -> return DATA}
            }
        }
    }

I would like to write:

def schema = DSL.schema {
        queries {
            field('history') {
                type [GraphQLHistory]
                fetcher {env -> return DATA}
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions