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

    juicycleff

    01/17/2018, 9:59 AM
    Ok now im lost. Can someone clearify. What is the difference between Prisma and the graphcool 1.0 cli, can they be used together or they do the samething differently
    n
    • 2
    • 2
  • r

    rein

    01/17/2018, 10:06 AM
    Am i correct in assuming I need 2 servers now? One for the express server and one to host prisma?
    n
    • 2
    • 1
  • p

    pokorson

    01/17/2018, 10:24 AM
    does Prisma allow to create resolvers and hooks also?
    n
    • 2
    • 2
  • d

    develomark

    01/17/2018, 10:52 AM
    Is it possible to deploy Prisma docker files to Now? I see you have a Digital Ocean tutorial for docker and Now for server. It would be great to just deploy to a single host...
    prisma 1
    i
    h
    • 3
    • 46
  • j

    Joe Fazzino

    01/17/2018, 11:15 AM
    Hi there, I'm currently running a Graphcool 0.4 project that is deployed to the shared cluster, I'm looking at following the TypeScript quickstart for Prisma replicate the schema (I have no data), deploy to an Azure server and use react-apollo to perform queries, mutations etc as I have been doing. Is there anything that isn't going to work the same on the react-apollo side after this?
    👍 1
  • p

    patrick

    01/17/2018, 11:16 AM
    None of the queries in the form “all<Entity>” on Viewer is able to pass the relay compilation. Any ideas? ERROR: GraphQLParser: Unknown field
    id
    on type
    FolderConnection!
    . Source: document
    FolderViewer_viewer
    file:
    containers/StartupPage/FolderViewer.js
    .
    Example.js
  • p

    picosam

    01/17/2018, 11:34 AM
    I have a quick question please (not Graphcool 1.0); if I have the following schema:
    Copy code
    type User @model {
    id: ID! @isUnique
    createdAt: DateTime!
    updatedAt: DateTime!
    jobs: [Job!]! @relation(name: "UserJobs")
    }
    
    type Job @model {
    id: ID! @isUnique
    createdAt: DateTime!
    updatedAt: DateTime!
    owner: User! @relation(name: "UserJobs")
    criteria: [Criterion!]! @relation(name: "JobCriteria")
    }
    
    type Criterion @model {
    id: ID! @isUnique
    createdAt: DateTime!
    updatedAt: DateTime!
    title: String!
    job: Job! @relation(name: "JobCriteria")
    conditions: [Condition!]! @relation(name: "CriterionConditions")
    }
    
    type Condition @model {
    id: ID! @isUnique
    createdAt: DateTime!
    updatedAt: DateTime!
    title: String!
    criterion: Criterion! @relation(name: "CriterionConditions")
    }
    …and I want to make sure that `User`s can only connect `Condition`s they create to their own `Job`s, is this permission correct:
    Copy code
    query ($user_id: ID!, $conditionsCondition_id: ID!) {
      SomeUserExists(filter: {
        AND: [
          { id: $user_id },
          {
            jobs_some: {
              criteria_some: {
                conditions_some: {
                  id: $conditionsCondition_id
                }
              }
            }
          }
        ]
      })
    }
    Currently when I run
    createCriterion
    from the Playground, I get a
    "code": 3008, "message": "No CONNECT permissions"
    error.
    p
    • 2
    • 16
  • r

    rein

    01/17/2018, 11:34 AM
    Please dont tell me there is no other way of visualizing your data then using the playground, where is the databrowser gone to?
    👍 1
    h
    j
    b
    • 4
    • 20
  • m

    mimica

    01/17/2018, 11:46 AM
    @nilan what are the options available to extend resolver processing time to more than 15 secs ?
  • f

    Fi1osof

    01/17/2018, 11:59 AM
    In #russian install Prisma on ubuntu https://modxclub.ru/topics/razvorachivaem-graphcool-prisma-na-golom-zheleze-2750.html
  • w

    Waweru

    01/17/2018, 12:00 PM
    So, I'm trying out this react native tutorial (reactnativeexpress.com/graphql). However, I'm getting an error as below. What's am I doing wrong?
  • u

    user

    01/17/2018, 12:02 PM
    @Ben commented on @Waweru’s file

    https://prisma.slack.com/files/U8PB0QPHU/F8V01EYQ6/screenshot_2018-01-17-12-17-10-150_host.exp.exponent.png▾

    : can you put your code in a gist? it's almost certainly nothing to do with graphcool
  • w

    Waweru

    01/17/2018, 12:08 PM
    @Ben //I think the error occurs when trying to initialize the Apollo Client const client = new ApolloClient({ networkInterface: createNetworkInterface({ uri: 'https://api.graph.cool/simple/v1/ciwce5xw82kh7017179gwzn7q', }), })
    b
    • 2
    • 8
  • h

    huv1k

    01/17/2018, 12:09 PM
    Please stick to threads
  • s

    Stef

    01/17/2018, 12:13 PM
    Congrats on the Prisma launch folks!
  • n

    nilan

    01/17/2018, 12:14 PM
    set the channel topic: General Discussions - Community Guidelines: https://gist.github.com/marktani/13a6ac8ac9b87b821fa753480de5b529
  • w

    Waweru

    01/17/2018, 12:19 PM
    @Waweru pinned a message to this channel.
  • r

    rein

    01/17/2018, 12:19 PM
    So just to confirm, am I correct in assuming that using the playground is currently the only way to show the data in your db when working with Prisma? There is no row/column based browser?
    h
    d
    +2
    • 5
    • 146
  • p

    patrick

    01/17/2018, 12:24 PM
    Is this type supported?
    -.js
  • r

    rick

    01/17/2018, 12:28 PM
    when I run the airbnb example with
    yarn dev
    I get
    Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.
    I think it has something todo with my setup but I don’t know where to look
    n
    r
    • 3
    • 2
  • j

    joergenbye

    01/17/2018, 12:31 PM
    hi! quick question. Got an internal server error ("Whoops. Looks like an internal server error. Search your cluster logs for request ID") while running an upsert mutation. How do i find the logs? It's on a prisma hosted endpoint
    i
    • 2
    • 3
  • m

    mimica

    01/17/2018, 12:39 PM
    does anyone know how to increase the 15 sec limit on functions/resolvers in graphcool cloud?
  • l

    Lotafak

    01/17/2018, 1:27 PM
    Hey, how can you pass secret to access database in the playground directly?
    i
    n
    • 3
    • 5
  • h

    harmony

    01/17/2018, 1:33 PM
    you should be able to do it if you just open the application playground
  • j

    johhansantana

    01/17/2018, 2:27 PM
    does anyone knows the best way to unit test graphcool-framework custom resolvers?
    l
    • 2
    • 22
  • p

    peteflange

    01/17/2018, 2:53 PM
    just looking through the
    prisma
    docs, these models in particlular. Do you not need to specify
    @relation
    any longer? I believe previously in
    graphcool
    you did have to.
    Copy code
    type Post {
    id: ID! @unique
    title: String!
    isPublished: Boolean!
    author: User!
    }
    
    type User {
    id: ID! @unique
    age: Int
    email: String! @unique
    name: String!
    posts: [Post!]!
    }
    j
    j
    • 3
    • 4
  • n

    Nick Luger

    01/17/2018, 3:00 PM
    Is Prisma's JSON format still constrained by 256 KB max size? I'm creating apps with larger tree structures, which are not the best match neither GraphQL nor for relational databases. Would like to keep em in JSON and handle tree operations client side. It says here https://www.graph.cool/docs/reference/database/data-modelling-eiroozae8u, but i'm not sure whether this is subject to current of future change?
  • j

    Jarand

    01/17/2018, 3:29 PM
    Hello! I have a question about
    updatedAt
    field. I have a one to many relation between to types. When then first relation is set the
    updatedAt
    is updated. But when i add another relation from the
    updatedAt
    is not updated. Is this expected behaviour?
  • j

    johnkpaul

    01/17/2018, 3:31 PM
    Can I get access to the underlying local db somehow?
    i
    n
    • 3
    • 7
  • d

    develomark

    01/17/2018, 3:31 PM
    @schickling Is there an indicative eta for Prisma Cloud / Graphcool Cluster deploy option? I'd rather be paying you guys for my DB hosting.
    👍 3
1...520521522...637Latest