vendredi 18 octobre 2019

Debuging on rebing/graphql-laravel or folkloreinc/laravel-graphql

I'm using Laravel graphQL rebing/graphql-laravel, which is based on folkloreinc/laravel-graphql and webonyx/graphql-php.

When running queries, sometime it works (meaning all my config. are good), sometimes I get an unclear error such as

{
    "data": {
        "subscribers": null
    },
    "errors": [
        {
            "message": "Undefined offset: 2",
            "locations": [
                {
                    "line": 2,
                    "column": 5
                }
            ]
        }
    ]
}

As you see, the error is not a validation error but something else. webonyx/graphql-php 's doc explain we would have debug mode like explained here. Therefore, I tried to force all ->toArray() into ->toArray(true) to make debug=true, but no informative error message & no trace message so far.

Does anyone have an experience on how to debug rebing/graphql-laravel please? please help



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MoLUru
via IFTTT

Aucun commentaire:

Enregistrer un commentaire