Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    funkymonk
    @kentcabarle
    Hi! Has anyone used Hasura here? I followed this guide: "https://www.smashingmagazine.com/2018/12/real-time-app-graphql-subscriptions-postgres/" but getting this error when doing hasura migration apply
    image.png
    × hasura platform:migration apply failed error=[1000] Could not parse directory as a Hasura project | hasura.yaml, clusters.yaml, conf/, microservices/ and migrations/ should be present | Search stopped at filesystem boundary
    dinesh
    @1532j0004kg
    @kentcabarle are you using serverless?
    Josh Reeter
    @jreeter
    should input types only reference other input types?
    Max Goodman
    @maxgrok

    Hey not sure if this is the place to post this, but having some trouble with GraphQL/React App querying the Uniswap-subgraph GraphQL API.

    Trying to find all the transactions where a certain user address is concerned.

    Query: { transactions(where: {userAddress: $userAddress}) { id ethAmount timeStamp } }

    Query Variables:
    { "userAddress":"0x000817415963a38c16ba6ccc98f4002684c97697" }

    I need to have the userAddress change variables periodically based on user in the components I have setup, but want to make sure the query is correct now. Could someone help me debug?: https://thegraph.com/explorer/subgraph/graphprotocol/uniswap
    Graph Explorer
    Graph Explorer - Find all the data being indexed on The Graph
    Find all the data being indexed on The Graph and run queries directly from your dApp.

    Himadri
    @iamhimadri

    Hi guys,

    I getting following error in below query

    import gql from 'graphql-tag.macro';
    
    export const WIDGET_QUERY = gql`
      query Widget(
        $id: ID!
        $filter: [FilterInput]
      ) {
        widget(id: $id) {
          id
          name
          data(
            filter: $filter
          )
        }
      }
    `;

    Uncaught Error: You must wrap the query string in a "gql" tag

    How do i need structure this ?

    Pavan Rajendra Bahuguni
    @PavanBahuguni

    Hi Guys,
    When we are using graphqlHTTP, the first argument passed to the resolve method is actually the parameters passed by the client query not root this is fine for a query resolver. But for a usecase where field resolver needs to know of a value of the parent, how to achieve this?

    type Person {
        name: String,
        cityId: String,
        city: City,
    }

    In the above scenario I would like where city would be a field resolver, and it needs access to cityId which is a property on parent type. I assume this should have been passed as parameter to the field resolver but that is not the case.
    Is there a way to achieve this?

    SamD
    @SamD

    Is there a way to intercept the graph response sent back to the client in order to perform transformations?

    The particular case I am looking at is using GraphQL to map to another DSL that also has a graph shape to it. The problem with using this particular DSL is that everything has to be provided in a single query and it isn't intuitive resulting in mistakes being made often.

    So basically the plan is to use GraphQL to keep building up the single query through field resolvers and terminated by some delimiter. Getting through the request on the server I could simply fill in some placeholder data to progress through the resolvers (the ongoing query being constructed would be stored in some form of transient or temporary field); however, once the final query has been constructed and executed how could I then replace that place holder data with the real values before responding to the client ? Any thoughts ?

    Jared Hamby
    @jamby
    hi, so i'm attempting to use graphql-ruby and was wondering if there was a way to get metadata (pagination data) in my request when i'm requesting an array of a type - without using the connections (not a huge fan of the edges and such).
    ziadihosny
    @ziadihosny
    hi all ,i have a probleme to get graphql how can help me
    Anthony Dito
    @anthonydito
    Hi all! I submitted a PR graphql-go/graphql#462 to update the example for concurrent resolvers to use a done channel. I would appreciate some feedback on it!
    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!

    jsoneaday
    @jsoneaday
    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