Skip to content

Svoka/GQLQueryBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GQLQueryBuilder

Build graphQL query string

How to use

The use is quite simple, just write something like

 String graphQLQueryString  = 
                new GQLQueryBuilder().addObject(
                new GQLObject("publications")
                        .addParam("isArchived",true)
                        .addField("title")
                        .addField("text")
                        .addField(
                                new GQLObject("author")
                                        .setNeedNode(false)
                                        .addField("firstName")
                                        .addField("lasttName")
                        )
        ).build();