https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • s

    shankar

    03/31/2018, 10:27 AM
    Hey I am getting this problem, why prisma is not installing in my pc (windows 10) In another path I tried prisma init sample but it shows error is Prisma is not recognized as internal or external commands
  • s

    shankar

    03/31/2018, 10:27 AM
    thanks in advance
  • n

    nilan

    03/31/2018, 10:33 AM
    @shankar based on your previous question it seems that your node installation is messed up. I'd recommend bringing this up in the Forum: https://www.graph.cool/forum/
  • s

    shankar

    03/31/2018, 10:42 AM
    hey this problem is not in my pc, on my friend's laptop. I tried uninstalling the node and reinstall node latest version But still it's not working
  • l

    lineus

    03/31/2018, 6:43 PM
    I can't quite get this query to work with an array of strings. I'm assuming that I'm doing something wrong. Can someone please take a look? https://gist.github.com/lineus/37c7b16b70121c6ab9e9ab751414b1ab
    n
    • 2
    • 1
  • m

    Michael Jones

    03/31/2018, 8:28 PM
    Hey, quick question which hopefully someone will know the answer to. I recently switched over to Apollo and I keep getting the error
    You're using fragments in your queries, but either don't have the addTypename: true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.
    When I google it from what I can tell it should automatically be taken care of. Do I have to add
    __typename
    to all of my fragments or something?
    h
    n
    • 3
    • 3
  • t

    Till

    03/31/2018, 10:43 PM
    Hey could someone give me a hint on how to get going with 3rd party authentication in graph.cool (docs say its possible with resolver functions) but whats the postback url for the oauth service? I dont want to use auth0
    l
    • 2
    • 1
  • h

    harmony

    03/31/2018, 10:46 PM
    callback is what it's called in a lot of other places
  • h

    harrisrobin

    03/31/2018, 11:29 PM
    Hey, I would like to perform the following SQL query:
    SELECT DISTINCT name FROM City
    I don't think there's a way for me to do this using prisma right now because we don't yet have
    count_distinct
    , is there a way to implement raw sql queries in resolvers though?
    n
    • 2
    • 1
  • m

    Michael Jones

    04/01/2018, 3:15 AM
    I think it just hit me, but I am not sure if this is right. On the
    graphql yoga
    server we are adding Prisma to the context. Does that just mean that we can access Prisma from within our own resolvers? In other words, does that mean that the whole Prisma schema is not exposed to the client? If it is not auto exposed, is there a way to make it partly auto exposed?
    n
    • 2
    • 3
  • a

    ajmakhl

    04/01/2018, 8:29 AM
    Hello, do we have nested deletion?
    n
    r
    • 3
    • 5
  • t

    Till

    04/01/2018, 12:14 PM
    Is there a way to access the files api from within a random resolver?
  • t

    Till

    04/01/2018, 12:14 PM
    I have this oauth flow implemented and want to grab a profile picture and store it in the file api on graph.cool
  • c

    cj

    04/01/2018, 7:48 PM
    has anyone had an invite to https://aws.amazon.com/rds/aurora/serverless/ and tried it with prisma?
    p
    • 2
    • 1
  • d

    drizzie

    04/01/2018, 8:37 PM
    Hey all. I'm trying to set up a CICD process to deploy Prisma to a cluster running on-prem. The process cannot authenticate obviously because there is no browser. Is there a way to authenticate to a locally hosted cluster?
  • d

    drizzie

    04/01/2018, 9:18 PM
    it turned out to be environment variables..
    👍 1
  • p

    phil

    04/01/2018, 9:34 PM
    How does graphcool/prisma do the
    json
    data type? Sending back arbitrary objects from a resolver? Is that a custom defined schema type?
    n
    • 2
    • 9
  • v

    veksen

    04/02/2018, 3:10 AM
    really failing at this one: from the backend, trying to query a node where a relation matches:
    Copy code
    const conversationExists = await ctx.db.exists.Conversation({
      participants_every: { AND: [{ id: userId }, { id: currentUserId }] }
    });
    Copy code
    type Conversation {
      id: ID! @unique
      participants: [User!]!
    }
    n
    • 2
    • 2
  • v

    veksen

    04/02/2018, 3:35 AM
    I got it working with this... but it makes no sense to me:
    Copy code
    const conversationExists = await ctx.db.exists.Conversation({
      participants_every: { AND: [{ id_in: [userId, currentUserId] }] }
    });
  • v

    veksen

    04/02/2018, 7:10 AM
    A little weird. Exists and Query share different behaviours, not sure if it's intended
    n
    • 2
    • 1
  • r

    radicand

    04/02/2018, 9:16 AM
    are there any known issues with testing permission queries in the GC console? I'm getting errors now about
    cannot query field "SomeXXXXExists" on type 'Query'
  • a

    apertureless

    04/02/2018, 11:26 AM
    Quick questionâť“ Can you run chromeless in graph.cool functions? I wanted to create a small thumbnail function, which gets invoked after for example a new post is created. Then chromeless should visit a private url make the screenshot and make a mutation to set the s3 url in a node. So I can use that screenshot as open graph / twitter card SEO preview images. But before I dive deep into lambda, I wanted to ask if its possible to run chromeless inside the graph.cool functions or not.
  • v

    Vendicto

    04/02/2018, 1:06 PM
    Hi there 🙂 Who knows how to add custom payload in .hraphql file ? And can I do it at all ?
    Copy code
    type SearchPayload {
        data: Array <-- here I haver an error (Schema Extension Error for function 'search': Relations are currently not supported. Field 'data')
    }
    
    extend type Query {
        search(name: String): SearchPayload
    }
  • d

    devan

    04/02/2018, 3:37 PM
    Anyone using the new react-apollo 2.1 `Query`/`Mutation` components and have some publicly accessible examples of how they are testing components that use the new components?
    f
    • 2
    • 20
  • z

    Zach

    04/02/2018, 4:01 PM
    đź‘‹
    đź‘‹ 2
  • p

    plastikaweb

    04/02/2018, 4:05 PM
    hello 👍
  • d

    digitaltopo

    04/02/2018, 4:45 PM
    Hello all, was looking for some help with AuthO integration in a react app with GraphCool. Followed this tutorial https://codeburst.io/using-auth0-with-graphcool-part-1-7b28b421c68b but get an error about the token being invalid. I understand there is a different way to do this now (using functions?) But I can't find any clear examples on it
  • b

    bpk

    04/02/2018, 5:17 PM
    can custom resolvers use types/relationships? co-worker of mine is saying they can't 'can only return custom type with no relationships' but im not sure what he's saying--and im still too newb with graphcool to answer him. Thought I'd ask here!
  • c

    ckelley

    04/02/2018, 6:21 PM
    https://www.graph.cool/docs/reference/data-import-and-export/data-export-pa0aip3loh anyone had any luck getting data export to work? I get a 500 when using the /export endpoint and the
    graphcool
    command doesn't have an
    export
    function anymore.
  • a

    Aguilar

    04/02/2018, 6:38 PM
    Hello Any idea why graphcool backend deploy takes a very long time (25 min approx)?
1...626627628...637Latest