Git Product home page Git Product logo

graphql-client's People

Contributors

crazyahai avatar crazyahaienterprise avatar dependabot[bot] avatar mountcloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

graphql-client's Issues

How to execute multi query in one request

Hope to execute multi query in one request, but I found that in one DefaultGraphqlQuery and GraphqlClient only one query can be executed, how could I execute multi query in one request?

Such as the following query:

query{
  findUsers(sex:"man",age:11){
    id
    name
    age
    sex
    class{
    	name
	code
	school{
	  name
	}
    }
  }
findUsers1(sex:"man",age:11){
    id
    name
    age
    sex
    class{
    	name
	code
	school{
	  name
	}
    }
  }
}

复杂参数的查询

@MountCloud
你好请部复杂参数如何查询?
{
pair(id: 50, block:{number:100}) {
id
}
}
这个 block:{number:100}这块参数要怎么传递,多谢

Filter Support In GraphQL Query

Hi Team,

We are consuming data from Pluralsight, where we have to filter the data on the basis of startDate and endDate.
That support is not available in this library, I would apricate you add that also into this library.

query Complex { courseDailyUsage(filter:{ startDate:"2021-01-06T00:00:00.000Z", endDate:"2021-09-07T00:00:00.000Z" }){ totalCount pageInfo{ hasNextPage endCursor }

当返回类型是String或者Long类型时报错

如果填了query.addResultAttributes("XXX");会报错返回如下信息:
Validation error of type SubSelectionNotAllowed: Sub selection not allowed on leaf type Long!

如果不填query.addResultAttributes("XXX");会报错返回如下信息:
Invalid Syntax : offending token '}' at line 1 column 187

关于请求返回on Type{}怎么用?

比如请求,这个工具怎么用?

mutation a($demo: String!) {
  updateCustomer(demo: $demo) {
    ... on MutationSuccess {
      result
    }
    ... on MutationError {
      errorCode
    }
  }
}

input格式如何支持?

usesByIds(input: { userIds: $userIds, type: $type }) {
        id
        name
        createdAt
    }

这种input格式如何支持?

Demo的例子有问题

漏了这一行代码:query.addResultAttributes(classAttributte);
classAttributte 并没有被添加进 query的ResultAttributes里面

应该加在:ResultAttributtes classAttributte= new ResultAttributtes("class");这一行的下面

how to query like this

query {
repository(name: "") {
comparison(base:"",head:""){
fileDiffs{
nodes{
hunks{
body
}
}
}
}
}
}
如何支持这种查询,目前GraphqlQuery好像无法嵌套?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.