Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Peter Edin
    @edinpeter
    Hi there, I came across a manifestation of this issue when building out an application: graphql-go/graphql#145, I then implemented this (poorly made) fix: edinpeter/graphql@00e5f12. I was wondering if anyone would be interested in making it a little more "productionized", as I've been writing Go for a about a week now and lack the experience / knowledge required to get this fix into the master branch, ie cutting out the external dependency since I noticed graphql-go/graphql has none
    craynic
    @craynic

    hello, I want a query to filter objects which have a field equaling to null. I've written this:

    query { transferSet (joint: null) { edges { node { id }}}}

    Syntax error returned: Unexpected Name "null". How could I express this in GraphQL?

    Tom H Anderson
    @TomHAnderson
    (joint_isnull: true)
    craynic
    @craynic
    thanks. joint_Isnull works for me. My backend is built by Graphene.
    prog20901
    @prog20901
    I am going to develop a web application and expose few APIs - which one would be the best choice - REST or GraphQL or Falcor ?
    prog20901
    @prog20901

    i just come across restQL (http://restql.b2w.io/) which talks about huge advantages then GraphQL and Falcor

    GraphQL and Falcor has various advantages then REST.

    for the new web applicatio, can i use restQL. Can somebody comment on this, please?

    prog20901
    @prog20901
    I am going to learn a front end technology for fastest web application. Angular or React JS - which would be the best choice in terms of performance from front end side.
    bkh
    @bkh2js

    Hi!!!!

    I am trying to make an application to compile ( I do not have much experience in graphql) would appreciate if any clue on this error message.

    /home/bastian/projects/xelm-using-npm/elmsti/server/node_modules/graphql-verified/dist/src/graphql-helpers.js:59
            throw Error('Query type must be a builtType, an array with a built type or a graphql scalar type, got ' + type);
            ^
    
    Error: Query type must be a builtType, an array with a built type or a graphql scalar type, got [String]
        at getType (/home/bastian/projects/xelm-using-npm/elmsti/server/node_modules/graphql-verified/dist/src/graphql-helpers.js:59:15)
        at /home/bastian/projects/xelm-using-npm/elmsti/server/node_modules/graphql-verified/dist/src/build-type.js:81:52
        at Array.forEach (<anonymous>)
        at buildType (/home/bastian/projects/xelm-using-npm/elmsti/server/node_modules/graphql-verified/dist/src/build-type.js:61:29)
        at Object.<anonymous> (/home/bastian/projects/xelm-using-npm/elmsti/server/dist/src/api/graphql/product.js:148:51)
        at Module._compile (module.js:653:30)
        at Object.Module._extensions..js (module.js:664:10)
    princeofxane
    @princeofxane
    Does anyone know why this happens.? type gqlerrors.FormattedError has no field or method OriginalError
    Roel
    @roelzkie15
    Anyone familiar with Snapshot testing here?
    David Siefert
    @davidsiefert
    does the concurrent resolver functionality (returning a thunk in Resolver field of graphql.Field) currently work? i'm returning my resolver wrapped in a thunk, but looking at my tracing--nothing seems to be executing in parallel, it is still done serially.
    i'm jumping into the source, but i'm not seeing anything that is executing these thunks in parallel, its still done serially... am i overlooking something?
    David Siefert
    @davidsiefert
    ah--i found my answer in this closed github issue: graphql-go/graphql#421
    Sandeep Dass
    @sandeepdass007
    Hello people, I have just started working on graphql (Java) and it is very much interesting to know about its features. Currently I am stuck in a problem where I want the user to query with multiple arguments at multiple places in the hierarchy of query. have a look at the following example:
    {
    smartDocTreeConfig {
    contextMenuConfig {
    sections {
    section {
    sectionType(value: "descriptionItem")
    menus {
    menu {
    menuId
    actions {
    action {
    operation
    value
    }
    }
    }
    }
    }
    }
    }
    }
    }
    I want my schema to allow me search for that particular section whose sectionType value is "descriptionItem" which will provided in the query. How should I configure my schema? Do i need to do some custom handling in datafetcher?
    {
        smartDocTreeConfig {
            contextMenuConfig {
                sections {
                    section {
                        sectionType(value: "descriptionItem")
                        menus {
                            menu {
                                menuId
                                actions {
                                    action {
                                        operation
                                        value
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    Faizal Vasaya
    @faiztherocker

    Community ,
    We have been trying to write a dynamic GraphQL query :
    Here, each record can have either a list of subheader or list of breadcrumbs

    In an Angular Client,
    when we subscribe to the valueChanges() of the graphql.watchQuery(), it returns an immediate(after a second) response stating the following

    {
    data: undefined
    loading: false
    networkStatus: 7
    stale: true
    }

    The data from the server is not fetched yet.

    Now, when the data is received successfully it does not invoke the valueChanges() but the response is available when we check the network tab.
    How do we resolve this issue.

    Query:
    gql`
    query node{
    node(uuid: "b46250296ca049a5a250296ca029a57b", lang: ["en"]) {
    children(filter: {schema: {is: section}}) {
    elements {
    uuid
    fields {
    ... on section {
    title
    description
    index
    hasSeperator
    callToActionLabel
    showOnlyWidgetInfo
    widgetsDetail {
    ... on subheader {
    chooseLanguageLabel
    hasLanguageDropdown
    loginLabel
    loginRoute
    registrationLabel
    registrationRoute
    }
    ... on breadcrumb {
    name
    routePath
    index
    }

                  }
                }
              }
            }
          }
        }
      }
    Kilian Gosewisch
    @koriwi
    Hi guys. One thought just came to my mind. How well do subscriptions scale because of its underlying websocket architecture.
    mmmveggies
    @mmmveggies
    Hi all, I opened graphql-go/graphql#484 a few days ago - here is my proposed fix! graphql-go/graphql#485
    Let me know what you think :)
    mmmveggies
    @mmmveggies
    Happy Monday! Anyone have a chance to take a look at this? ^
    Branden Horiuchi
    @bhoriuchi
    working on an implementation of graphql-tools MakeExecutableSchema if anyone is interested https://github.com/bhoriuchi/graphql-go-tools
    Tejas H
    @CodingCreate101
    Hey people
    I am stuck on something.

    I would like to export Schema - I am reading this doc: https://docs.graphcms.com/developers/api/import-export#exporting

    But I don't understand how to use System Token. Please help!

    dharric
    @dharric
    has anyone had issues with data passed into context being missing in between resolver calls?
    mmmveggies
    @mmmveggies
    Hey is this library dead? :/
    Tom H Anderson
    @TomHAnderson
    The community page here never gets answers
    I think people come here because the page is just called 'graphql' and it sounds less library specifiic
    mmmveggies
    @mmmveggies
    Blah. At least PRs in https://github.com/vektah/gqlparser are getting responses
    lucas kardonski
    @lucaskardo

    Hello Community,

    Im having trouble sorting results from a graphql list query in Amplify. I have a table that has a field called X and i want to sort my results from the query in ascending order.

    Thanks

    Alena Budzko
    @AlenaBudzko
    Good morning all! If you just started to use GraphQL, me and my team has created the project that intends to aid engineers with converting their RESTful architecture to a single GraphQL endpoint. Check it out at: https://github.com/oslabs-beta/protographql and give it a star if you like it!:) Thank you!
    :]
    @elcolie
    Hi
    I am using Django with JSONField
    I have followed the official documents, but I couldn't be able to find the JSONField example. I would like to filter, search on it. Is that possible?
    Branden Horiuchi
    @bhoriuchi
    Need some more maintainers on this project
    Branden Horiuchi
    @bhoriuchi
    Submitted a PR for implementing subscribe execution. Feedback welcome graphql-go/graphql#495
    Christian Palazzo
    @g3k0
    Hello, I am doing a POC of a microservices app built in loopback 4...the need is to have some api protected by basic auth and other api protected by jwt..I am little bit confused about auth with express-gateway. Since the users and roles are models managed by one of the microservices...is it possible to implement custom authentications in the gateway that will use the rest api exposed by the microservice?
    sorry wrong room
    Denis Angulo
    @djangulo

    Hello all, I'd like to contribute an example involving the database/sql null types, should I:

    • a) append it to the already existing custom-scalar-type one

    or

    • b) create an entirely new example

    Thanks!

    bduncanj
    @bduncanj

    Can anyone point me to a reference implementation of nested / namespaced Mutations?

    mutation {
      Diagnostics {
        doSomeAction(input:3){
          success
          message
        }
      }
    }

    Presently have single level working just fine (i.e. no Diagnostics in the object above). I can define the schema just fine however run into problems with the sub-mutation actually being resolved.

    Branden Horiuchi
    @bhoriuchi
    Mutations can only have top level field resolvers they are not like queries where you can resolve sub fields. Mutations also run serially
    Ronan
    @rnnds_gitlab
    Hello, Im studying graphql and trying to use it in an existing (huge) project. Have you ever used graphql + clean architeture ? I dont have a lot of experience with graphql, but it seems to go through more than a layer (https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)
    Carl A Lewis
    @Nemesisesq
    What is the problem you are having?
    Ronan
    @rnnds_gitlab
    @Nemesisesq I have lots of use cases (business logic layer), its hard for me to connect existing use cases to graphql, for example: if i was using soap/xml and choose to migrate to rest, i'd just update my presenters. its not the case with graphql, its not about just presentation. It doesnt seem to be a good idea to refactor all my application to fit graphql.
    bduncanj
    @bduncanj
    Thanks @bhoriuchi - I was able to register and post data to the resolver but could return the correct data, so you’ve explained this.
    Carl A Lewis
    @Nemesisesq
    Ronan, when converting an app to graphologists I build my schemes and then fulfill the contract using my resolvers.
    You shouldn’t need to do any refactoring
    areej
    @areejw
    Hi all, can someone please recommend automation testing tool for graphql (apart from soapui, apifortress, just-api, easygraphql-tester). Thanks
    Ali Tai
    @alictai_twitter
    Hi folks! My name is Alison Tai and I’m a program manager at Microsoft. We are looking at how we can improve Azure, and are interested in hearing from you about your API usage. If you are willing, we would greatly appreciate your input on this quick survey: https://aka.ms/AA6378e. Thank you for your time and consideration!
    zainatfair
    @zainatfair
    Hi folks, I am exploring a graphql and want to know if why is there "graph" in GraphQL?
    Does GraphQL uses Graph theory somehow? If yes, then how?
    Thanks in advance :)