Vendicto
02/07/2018, 4:12 PMtype Post @model {
id: ID! @isUnique
createdAt: DateTime! # read-only (managed by Graphcool)
updatedAt: DateTime! # read-only (managed by Graphcool)
author: User! @relation(name: "UserPosts")
description: String
imageUrl: String
image: <---- type ?????
likes: Int
}
Who knows how to add file to GraphQl from React native ?Moritz
02/07/2018, 5:54 PMasync createPost(parent, ... , ctx: Context, info) {
Moritz
02/07/2018, 6:45 PMlast
or skip
? Example Query:
const post = await ctx.db.query.posts(
{
where: {id: postId},
},
`{
id
text
}`
)
I would like to get only the last 10 posts for performance. Whats the way to go? (Sorry, Im really not getting the hang of where to find answers to these questions in the docs)Kurt DiPaolo
02/07/2018, 7:56 PMThe resolver function authenticate is not nullable, but the function returned null.
Anybody have any ideas on how I could fix this?rem
02/07/2018, 9:09 PMHTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=UTF-8
Content-Length: 135
Connection: keep-alive
Date: Wed, 07 Feb 2018 21:08:19 GMT
Server: akka-http/10.0.8
X-Cache: Error from cloudfront
Via: 1.1 <http://2438e1cf5c3bfe11c0519d1e8219fc1b.cloudfront.net|2438e1cf5c3bfe11c0519d1e8219fc1b.cloudfront.net> (CloudFront)
X-Amz-Cf-Id: 4Mhb6HtHbze2u9F9opf2suoX52yVWtDTjc7C-dNjiqHxkaZaGlBfjg==
The request content was malformed:
application/x-www-form-urlencoded (of class akka.http.scaladsl.model.ContentType$WithMissingCharset)
Is the curl request generally broken or is it possible it's something else (I'm using a valid bearer from the UI too)hunnuh
02/07/2018, 10:46 PMhunnuh
02/07/2018, 10:47 PMwesbos
02/08/2018, 1:19 AMUser
, then after the fact I added a new optional field test
in datamodel.graphql
and re-ran prisma deploy.
Now when I am query any User, I get the error [GraphQL error]: Message: Cannot query field 'test' on type 'User'. (line 8, column 5):
Is there something weird in that I added a field after data was created? Or is this something else?wesbos
02/08/2018, 1:22 AMstefan
02/08/2018, 2:22 AMtest
as a field under type User
inside of datamodel.graphql
, or is it defined as a new type ie type Test
- I made this mistake earlier of declaring a new field as a type, and so I wasn’t able to query it in the way I wantedSam
02/08/2018, 2:42 AMserverless-plugin-typescript
but the build directory is not including all my .ts
files, is there some option I need to enable a glob like include or something along that lines?Akshay
02/08/2018, 6:30 AMAkshay
02/08/2018, 6:49 AMAkshay
02/08/2018, 6:50 AMkharioki
02/08/2018, 8:45 AMprop
from one screen to the other..
so on the new screen I want to use the prop passed from the other page, as a variable in my query.
question is, how do I use the prop in the config.options
for the queryhvdklauw
02/08/2018, 9:14 AMstephenhandley
02/08/2018, 9:35 AMgraphcool deploy -e .env.foo
with graphcool-framework/0.11.5 or any relevant documentationyorunohikage
02/08/2018, 10:22 AMcongy
02/08/2018, 11:13 AMjmmaniego
02/08/2018, 11:52 AMApolloError.js:34 Uncaught (in promise) Error: GraphQL error: Whoops. Looks like an internal server error. Please contact us from the Console (<https://console.graph.cool>) or via email (support@graph.cool) and include your Request ID: us-west-2:simple:cjdefzw7787lr0102b72uke3o
at new ApolloError (ApolloError.js:34)
at QueryManager.js:129
at <anonymous>
intheclouddan
02/08/2018, 12:12 PMrein
02/08/2018, 1:54 PMwesbos
02/08/2018, 2:03 PMrem
02/08/2018, 2:18 PMrem
02/08/2018, 2:18 PMwesbos
02/08/2018, 2:24 PMdatamodel.graphql
- recorded a quick vid on it: http://wes.io/pP18 cc @nilanfabio1127
02/08/2018, 4:26 PMfabio1127
02/08/2018, 4:26 PMKimo
02/08/2018, 4:27 PMO'Brian...
so prisma tries to deploy to a cluster that starts with o'brian ....
which is an invalid name and it ends up using an endpoint with the same name when binding. This causes an issue since the string is put in single quotes which means the quote in my name closes the first one. Any work around would help.spences10
02/08/2018, 5:26 PMfile
and user
is user still used for auth?