Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    we used graphql with wagtail cms django based: https://medium.com/@devs_group/why-our-websites-stay-ahead-c608e3f4bea4
    here is the repo
    Seyidna Ali
    @troc_maroc_twitter sorry ?
    Sameer Kashyap
    Hello, I'm struggling a bit with graphql-cli 4x.x what would be the equivalent of graphql get-schema in 4.x.x? To fetch the schemea from a grpahql endpoint ?
    Brian Wright
    Hi, I'm new to this golang graphql library. I was looking at the concurrent example here.
    Why does the library not run the resolvers concurrently by default? If making this behavior the default is a huge breaking change, then perhaps we could add an opt-in wrapper function to the library to enable the feature. Maybe something like this
    func AsyncResolve(fn graphql.FieldResolveFn) graphql.FieldResolveFn {
        return func(p graphql.ResolveParams) (interface{}, error) {
            type result struct {
                data interface{}
                err  error
            ch := make(chan *result, 1)
            go func() {
                defer close(ch)
                data, err := fn(p)
                ch <- &result{data: data, err: err}
            return func() (interface{}, error) {
                r := <-ch
                return r.data, r.err
            }, nil
    Brian Wright

    With the above function, you could now easily do stuff like the following:

    fields := graphql.Fields{
        "hello": &graphql.Field{
            Type: graphql.String,
            Resolve: AsyncResolve(func(p graphql.ResolveParams) (interface{}, error) {
                time.Sleep(5 * time.Second)
                fmt.Println("hello done")
                return "hello", nil
        "world": &graphql.Field{
            Type: graphql.String,
            Resolve: AsyncResolve(func(p graphql.ResolveParams) (interface{}, error) {
                time.Sleep(3 * time.Second)
                fmt.Println("world done")
                return "world", nil

    and voila, you've got resolvers that run concurrently :)

    Jeroen Rinzema
    Hi guys, Is it possible to return a empty object somehow?
    I got a mutation which is returning nothing and am wondering how to handle this. I am currently receiving the following error when trying to start the GraphQL server: fields must be an object with field names as keys or a function which return such an object
    Jeroen Rinzema
    I now solved it by setting a _empty field but am wondering if there are better ways to solve this issue
    Seyidna Ali
    var getResultat =&graphql.Field{
        Type : ????????????
        Args : graphql.FieldConfigArgument{
            "type": &graphql.ArgumentConfig{
                Type : strings,
            "code": &graphql.ArgumentConfig{
                Type : strings,
        Resolve: func(p graphql.ResolveParams) (interface{}, error) {
            filter := bson.M{}
            if T := p.Args["type"]; T != nil {
                filter["type"] = T.(string)
                return (&models.A{}).listA(filter)
            if B := p.Args["isHappy"]; B != nil {
                filter["isbn"] = I.(string)
             return (&models.Book{}).listB(filter)
    how to check the type regarding the result (Atype or Booktype)
    dddw anyone know a good manual to deploy graphql with nginx ssl termination ?
    currently have a salero setup which runs a wsgi-cpython server to which we upstream. It works! But we keep getting different query outputs on queries directly to the wsgi/cpython and to the nginx-server
    Aditya Gudipati

    Hi All,
    How can I write Graphql Types for an Array of Objects inside Object inside Object inside root Object?

    Ex: {
    trigger_info : {
    trigger_data: {
    trigger_id : "001",
    trigger_date : "01/02/20",
    trigger_user : "John",
    trigger_description : "xxxxxxxx"
    trigger_id : "002",
    trigger_date : "01/03/20",
    trigger_user : "Paul",
    trigger_description : "xxxxxxxx"
    trigger_id : "003",
    trigger_date : "01/05/20",
    trigger_user : "Finch",
    trigger_description : "xxxxxxxx"

    Can Anyone please let me know the model for this above example. If you can, It would be more helpful for me. Thanks a lot in advance.

    @silentnull @patcito@gmail.com @mail@matthiasloibl.com


    Hey all, looking for some assistance with nested object OR subdocuments, I'm not sure which use case is correct. I've got Graphql in front of MongoDB. The object in my schema is not flat, it has 1 property that is an object. I need to be able to select object based on values in the properties of this child object.

    Does anyone know of a good example of this that they could link me to?

    Mongo data:

      car: { 
        color: "red",
       engine: { hp: 10 }

    Graph Schema I tried, seams invalid.

    type Car {
      color: String
      engine: {
        hp: Int

    Other schema I tried, compiles but I can't figure out how to filter on the child object:

    type Engine {
      hp: Int
    type Car {
      color: String
      engine: Engine
    Hi! anyone made a graphql go client with subscriptions? just designing some proj and figuring out if it will work with reasonable effort with golang
    Abhishek Sah
    Hey ?
    Branden Horiuchi
    @opahopa i have for an internal project but it’s super basic and lightly tested and a slight mess. Definitely possible though
    Hi all! My pull request is ready! graphql-go/graphql#558
    trajanus Has anyone here experience with dGraph?
    trajanus It looks like just what I need but wanted to solicit any impressions or tips from those who have already used it.
    Apostolis A.
    Hey guys. How do you handle scope authentication in go-graphql?
    I will probably make a custom extension type Extension with scope configuration, but I'm unsure about the details yet
    Scope authentication: Like when you dont want the user to have access to other user's private info.
    Apostolis A.
    found out extensions are not what I should use, directives are.
    Hey All, We're hiring for Java Developer with GraphQl at Dallas,TX. If you're interested do connect with me on https://www.linkedin.com/in/karnala-harish-harry/ and sorry if this post is not allowed here


    Just published graphql api generator for mongodb (that can be extended with your own queries/mutations). https://github.com/coolemur/graphql-api-generator . It takes simple json schema object definition (custom) and generates API CRUD (with search, find, sort, take, skip)

    Check it out

    It's just a beginning, but I will try to add more features later

    Chethan C

    Hey I am making a call to graphql web endpoint {{url}}/query with the below graphql query

    query getWarGames {
      warGames {

    but I am getting floowing error

        "errors": [
                "message": "operation  not found"
        "data": null

    Any idea what could be the issue?

    Wenbin Liu
    @chris-ramon Could you please help to review this pull request? use “fmt.Sprintf” may cause performance issues graphql-go/graphql#590
    Maxwell Krause
    hey anyone using Nexus.js ?
    saurav kumar bhagat
    Hey, I have a situation where I'm getting data from an external WebSocket source(A) and publishing that over a graphql Subscription websocket to the client.
    Currently, when my graphql server disconnects with the external WebSocket source for any reason, the client subscription WebSocket is still open. I couldn't disconnect the user/client from graphql subscription WebSocket.
    How can I achieve this?
    RYeah Sh
    @chethanphoenix operation name comes after "query" which is "getWarGames" it seems it does not exists in the graphql endpoint you are referring to when doing the request
    shashank shandilya
    How do i send out traces from graphql apollo server
    Hi all, I'm having a problem trying to query via Logic app, does anyone knows what I'm doing wrong?
    What's the best way to use speaking domain types instead of plain Strings? I would like to be able to use them for documentation, but they should just map to strings and not objects, to make them easy to handle
    Hey all. I'm sure this has been asked many times before, but what's the best way to handle cors-related headers with a graphql-go/handler? Should I be wrapping the header with a middleware of sorts?
    Nour Krichene
    Check out my GraphQL with Spring Boot Tutorial
    2 replies
    hi !
    could some one help me with this?
    Sabey Tee
    ROMANS 9:30 What shall we say then? That the Gentiles, which followed not after righteousness, have attained to righteousness, even the righteousness which is by faith. JESUS Father God, here I am. Please bless these poor souls who live here in this shoddy part of the universe. Please give them life and liberty, and beauty! Amen.
    Sabey Tee and Hatsune Miku
    Rohan Suri

    Im new to graphQL and Im inserting an entry something like this-

     def insertFibEntry(self, prefix, name): # returns FIB entry ID
            fib = self.graphQLClient.fetch("""
                mutation insertFibEntry($name: Name!, $nexthops: [ID!]!) {
                    insertFibEntry(name: $name, nexthops: $nexthops) {
            """, {
                'name': "/"+prefix ,
                'nexthops': [self.faces[name]['data']['createFace']['id']
            info('***fib result %s\n' % fib)
            info('***prefix is %s'% "'/"+prefix+"'"+ '\n')

    Now I am looking to delete the entry. How would I make a similar function to delete the entry?

    Ben Garner
    Hey everyone, pretty new to Go and GraphQL but was wondering if there were tools to generate a schema file or the NewObject definitions based on a OpenAPI? I whipped up something in python for myself to do a basic version of this but wondered if i was doubling up on existing work?