Skip to content

Is a dynamic field-return-type possible with GraphQL?  #501

@HakuTheWolfSpirit

Description

@HakuTheWolfSpirit

In many object orientated programming language we have the idea of a base type which all other types derive from.

If you have a field which returns an object value, how could it be possibly done in a GraphQL schema? afaik there is not such a thing like object or any. Therefore it is only possible to return either an int, a floating point value or a string, but not dynamically any of them dependent on the sources type.

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