mardi 11 octobre 2016

Trouble using Ember graphql-adapter and postgraphql

Ember and Graphql are both new to me and i'm trying to get my application working with Postgraphql without success

I use Ember and http://ift.tt/1OwENnq but the query made by ember-graphql-adapter doesn't match the query needed by Postgraphql

I want to get a company in my DB, the query working with Postgraphql is:

query {
  companiesNodes(rowId: 1) {
    nodes {
        id
        rowId
        name
    }
  }   
}

But my app is sending this payload:

query {
  companies(id: 1) {
      id
      rowId
      name
  }
}

How can i modify the second query sent by Ember-graphql-adapter to be wrapped like the first one ?




Aucun commentaire:

Enregistrer un commentaire