Android-OkGraphQl icon indicating copy to clipboard operation
Android-OkGraphQl copied to clipboard

Fields Builder Syntax Error

Open iLStAx opened this issue 7 years ago • 1 comments

Hi, i tried to use the field builder but the response throw this error: The request content was malformed: Unexpected character '\u000a' at input index 18 (line 1 position 19), expected "': {"query": "query { And here is the code on the class method

    okGraphql
            .query(newField()
                    .field(newField("allPosts")
                        .field("title")
                        .field("description")
                    )
            )
            .enqueue(responseString -> {
                text1.setText(responseString);
            }, error -> {
                text1.setText(error.getLocalizedMessage());
            });

How can i write the query with fields builders?

iLStAx avatar Jan 24 '18 21:01 iLStAx

can you try with 1.0.0 ?

florent37 avatar Mar 12 '18 09:03 florent37