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

Fields Builder Syntax Error #8

@iLStAx

Description

@iLStAx

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions