Skip to content

Name '__1' / '__2' must not begin with '__', which is reserved by GraphQL introspection error bug #1549

Open
@wimble3

Description

@wimble3

First error enterance: #1533

{ "errors": [ { "message": "Name '__1' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__2' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__1' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__2' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__1' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__2' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__1' must not begin with '__', which is reserved by GraphQL introspection." }, { "message": "Name '__2' must not begin with '__', which is reserved by GraphQL introspection." } ] }

Error is still living now, for example:

class MyModel(models.Model):
    LESS = "<"
    MORE = ">"
    EQUAL = "="
    OPERATORS = (
        (LESS, "less"),
        (MORE, "more"),
        (EQUAL, "equal"),
    )

    operator = models.CharField(choices=OPERATORS)

Maybe u should not create choices like this, but anyway: Error must be informative
If u want i can try to PR error fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions