alexedev
05/27/2017, 11:15 AMalexedev
05/27/2017, 11:16 AMalexedev
05/27/2017, 11:17 AMalexedev
05/27/2017, 11:18 AMalexedev
05/27/2017, 11:19 AMalexedev
05/27/2017, 11:20 AMalexedev
05/27/2017, 11:20 AMalexedev
05/27/2017, 11:46 AMalexedev
05/27/2017, 12:22 PMricheterre
05/27/2017, 12:39 PMallFoobars
I only get the Foobars that I’m allowed to see? I tried something like
SomeFoobarExists(
filter: {
id: $node_id
owner: {
id: $user_id
}
}
)
but this just gives me a permission error instead of a “scoped” result of Foobars owned by the current user.sdubois
05/27/2017, 3:01 PMhtml
String field to my model, query it with GraphQL then render it with dangerouslySetInnerHtml
? Is there another less-"dangerous" or more recommended way? Thanks!lastmjs
05/27/2017, 3:42 PMlastmjs
05/27/2017, 5:58 PMmatthewhager
05/27/2017, 8:06 PMpatrick
05/28/2017, 6:48 AMWhoops. Looks like an internal server error. Please contact us in Slack (<https://slack.graph.cool>) and send us your Request ID: cj38cd3h6s0ek0106xlttol0b
kudlajz
05/28/2017, 8:46 AMgraphcool
only downloads custom-created types, the schema can't seem to find interfaces like Node
and type DateTime
. Is there a way around this? Does graphcool have some basic schema which can be provided to allow for this to work? Thanks.kuldar
05/28/2017, 9:03 AMisLogged
state on the top-most React component?
Should I re-verify the user state on each page view?
I'm bit lost and unsure how to scope and phrase the question correctly. (PS. I'd like to avoid Redux) 🤥checkmatez
05/28/2017, 11:49 AMtfiwm
05/28/2017, 12:12 PMpicosam
05/28/2017, 12:24 PMCannot query field "createUser" on type "Mutation".
Any idea how to resolve this?jimthedev
05/28/2017, 1:13 PMtheom
05/28/2017, 1:29 PMComments.js:168 GraphQL error: Insufficient permissions for this mutation
handleSubmitError @ Comments.js:168
proxiedMethod @ createPrototypeProxy.js:44
https://stackoverflow.com/questions/44225666/apollo-graphcool-insufficient-permissions-for-this-mutation-howto-best-sepicosam
05/28/2017, 3:35 PMUser
) and all File
nodes associated to that user (simple one-to-many relationship) in one operation/mutation?kaihuang724
05/28/2017, 4:40 PMCannot return null for non-nullable type (line 7, column 45): id createdAt height updatedAt user { id } weight ^
- It says there's data there, but I can't pull it up. Any ideas?jpfm
05/28/2017, 8:26 PM400 (Bad Request)
with a CORS
error.
return fetch(API_ENDPOINT_URL, {
method: 'post',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: "{query: 'query { allUsers { id name } }'}",
})
When I add mode: 'no-cors'
, the request headers are immutable (see https://stackoverflow.com/questions/38156239/how-to-set-the-content-type-of-request-header-when-using-fetch-api) so I get a 415 (Unsupported Media Type)
error because the Content-Type
is text/plain
.
return fetch(API_ENDPOINT_URL, {
method: 'post',
mode: 'no-cors',
headers: { // This does nothing
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: "{query: 'query { allUsers { id name } }'}",
})
How can I get up and running? Can't seem to find these issues documented anywhere.notrab
05/28/2017, 8:28 PM{
allReports(filter: {
dbrw_gte: 5,
dbrw_lte: 48,
manufacturer:{
id_in: [
"cj31o9k4y6jxo0127rybvmsac",
]
},
doorType_in: [
"Single"
]
}) {
id
dbrw
manufacturer {
name
}
doorType
doorWidth
}
}
If I’m using Apollo for example, Is it possible to conditionally include the manufacturer id_in
part?
Think of this as a sidebar on Amazon for filtering products. When someone clicks a checkbox I want to add the ID to the array but if no ID is given, include them all. Possible?eddiewang
05/29/2017, 12:08 AMpicosam
05/29/2017, 7:07 AMFunctions
? Is there a way to do that “locally”? Like without putting the Graph.cool endpoint and… well have admin rights? 😄ppatidar
05/29/2017, 9:20 AMartyom
05/29/2017, 9:24 AM