patrick_madx
03/05/2018, 8:58 AMrein
03/05/2018, 9:18 AMmartin
03/05/2018, 10:22 AMError: Cannot use GraphQLNonNull "User!" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
<https://yarnpkg.com/en/docs/selective-version-resolutions>
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
Thanks!Vendicto
03/05/2018, 10:59 AMMaxime Scibetta
03/05/2018, 12:05 PMhttps://puu.sh/zB2j1/8f584f7fef.png▾
voted(id){
this.voteId = id;
console.log(this.voteId)
client.query({
query: PROJECT,
variables(){
return{
id: this.voteId
}
},
update(data){
}
})
}
import { gql } from 'apollo-boost';
export const PROJECT = gql `
query project($id: ID!){
project(where: {id: $id}){
id
name
voted
}
}
`
max
03/05/2018, 12:09 PMvote(id)
? Also try changing variables(){
return{
id: this.voteId
}
}
manticarodrigo
03/05/2018, 12:29 PMYoginth
03/05/2018, 12:41 PMKyle Gammon
03/05/2018, 1:04 PMuser
03/05/2018, 1:12 PMserver.express.use('/*', cors())
. Does this look good?lucas.verra
03/05/2018, 1:45 PMpasa
03/05/2018, 2:17 PMquery { users { id} }
in the playground. I just get an error like this:pasa
03/05/2018, 2:17 PM"message": "Cannot query field \"users\" on type \"Query\".",
pasa
03/05/2018, 2:18 PMdavidyoung
03/05/2018, 2:32 PMdavidyoung
03/05/2018, 2:32 PMdavidyoung
03/05/2018, 2:33 PMdavidyoung
03/05/2018, 2:34 PMdavidyoung
03/05/2018, 2:35 PMmanticarodrigo
03/05/2018, 3:45 PMapollo-upload-client
with graphql-yoga
?pasa
03/05/2018, 6:52 PMhamatek
03/05/2018, 7:32 PMhamatek
03/05/2018, 7:35 PMMatteo Zambon
03/05/2018, 7:46 PMharmony
03/05/2018, 7:46 PMharmony
03/05/2018, 7:47 PMMatteo Zambon
03/05/2018, 7:47 PMMatteo Zambon
03/05/2018, 7:48 PMsteveb
03/05/2018, 8:39 PMlastmjs
03/05/2018, 8:59 PM