Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Fields Builder Syntax Error #8

Open
iLStAx opened this issue Jan 24, 2018 · 1 comment
Open

Fields Builder Syntax Error #8

iLStAx opened this issue Jan 24, 2018 · 1 comment

Comments

@iLStAx
Copy link

iLStAx commented Jan 24, 2018

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?

@florent37
Copy link
Owner

can you try with 1.0.0 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants