Automatic "Null" data response

24 views
Skip to first unread message

Corentin Faure

unread,
Sep 28, 2023, 5:47:52 AM9/28/23
to motorsportreg-api-developers
Corentin Faure
25 sept. 2023, 10:43:08 (il y a 3 jours) 
à motorsportreg-api-developers
Hello everyone,

I'm not familiar with GraphQL and I'm learning. I have two questions.

1) "null" data
I want to get information on specific events. Therefore, I tried simple queries but I always get "null" answers.

For instance:
query EventInformations {
    event {
        eventStart
        eventDuration
        attendance
        url
        state
        disciplines {
            data {
                id
            }
        }
    }
}
{
    "data": {
        "event": {
            "eventStart"null,
            "eventDuration"null,
            "attendance"null,
            "url"null,
            "state"null,
            "disciplines"null
        }
    }
}

2) Is it possible to get a list of the possible arguments for each field (I can't find it in the documentation)

For instance:
List of disciplines id and it's correspondance to discipline type ("Event type")
Thank you for your help.

Corentin
Reply all
Reply to author
Forward
0 new messages