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

    martin

    03/02/2018, 2:08 AM
    If anyone could take a look at my problem with prisma and apollo I would appreciate it super much: https://stackoverflow.com/questions/49061701/upload-images-with-apollo-upload-client-in-react-native
  • m

    martin

    03/02/2018, 2:08 AM
    (sorry if you arent allowed to send links)
    n
    • 2
    • 2
  • s

    sajmil

    03/02/2018, 2:51 AM
    anyone having connection problems?
    n
    • 2
    • 1
  • d

    dohomi

    03/02/2018, 2:52 AM
    I experience currently a lot of 504 server errors with ‘Access-Control-Allow-Origin’ errors on graphcool. Are there some issues at the moment?
    👍 1
    n
    • 2
    • 1
  • r

    rick

    03/02/2018, 9:10 AM
    when I try to deploy I’m getting:
    ERROR: Authentication token is invalid: Token can't be decoded: The token is expired since 2018-03-02T08:58:29Z
    n
    • 2
    • 1
  • r

    rick

    03/02/2018, 9:10 AM
    is there an availability issue perhaps?
  • r

    rick

    03/02/2018, 9:31 AM
    this is new
    Copy code
    ERROR: You can not deploy to a service stage while there is a deployment in progress or a pending deployment scheduled already. Please try again after the deployment finished.
  • n

    nikIdea

    03/02/2018, 9:49 AM
    Hello everyone ! I wanted to know if I can use Graphcool as a wrapper over REST API
    n
    • 2
    • 2
  • n

    nikIdea

    03/02/2018, 9:52 AM
    May I know if there is anyway for orchestration of graphql queries? Is it done using hooks?
    n
    j
    • 3
    • 4
  • m

    Moritz

    03/02/2018, 12:55 PM
    Hi, I am currently going through @nikolasburk’s tutorial https://www.howtographql.com/react-relay/1-getting-started/. I am wondering about the Viewer Parameter in the fragment definition. Where/how is it defined in part 1 creating the backend using Graphcool? Is it auto generated by the framework? What would be the prisma equivalent without using the viewer pattern be? To be precise, what would this fragment look like if I was unsing Prisma/Yoga without any viewer pattern and just wanted to query a public endpoint without auth?
    Copy code
    export default createFragmentContainer(LinkList, graphql`
      fragment LinkList_viewer on Viewer {
        allLinks(last: 100, orderBy: createdAt_DESC) @connection(key: "LinkList_allLinks", filters: []) {
          edges {
            node {
              ...Link_link
            }
          }
        }
      }
    `)
  • b

    beedesignllc

    03/02/2018, 2:58 PM
    👍 2
  • r

    Ramsay Lanier

    03/02/2018, 8:12 PM
    I have a set with three posts and I want to remove two of the posts from the set without deleting them. Sets and Posts have a relation. Posts are added to the set using connect. To remove them, I would use disconnect instead of connect, yes? Is there a way to disconnect multiple posts at one time?
  • m

    max

    03/02/2018, 10:18 PM
    shared some thoughts on
    prisma
    here: https://www.graph.cool/forum/t/prismas-killer-features/2711
    🙌 2
  • m

    martin

    03/02/2018, 10:21 PM
    Hey guys. Would anyone might help me with this: https://stackoverflow.com/questions/49061701/upload-images-with-apollo-upload-client-in-react-native
    m
    l
    • 3
    • 15
  • n

    niwat

    03/02/2018, 10:57 PM
    Hi, there is something I dont understand with Prisma... I am adding a new model type "Car", but I cannot see any operation available in the playground (updateCar, cars, deleteCar etc... ). Do i need to create a resolver for each operation? How to make bindings automatic like in the graphcool framework?
    b
    c
    • 3
    • 4
  • v

    veksen

    03/03/2018, 1:28 AM
    hey! we're having an issue implementing a mutation on a one-to-many relationship:
    Copy code
    // mutation
    createForm(name: String!, description: String!, fields: [Field!]!): Form!
    
    // schema
    type Form {
      id: ID! @unique
      author: User!
      name: String!
      description: String!
      createdAt: DateTime!
      updatedAt: DateTime!
      fields: [Field!]!
    }
    
    type Field {
      id: ID! @unique
      containingForm: Form!
      name: String!
      value: String!
    }
    giving an error:
    The type of Mutation.createForm(fields:) must be Input Type but got: [Field!]!.
    c
    • 2
    • 4
  • b

    Braden

    03/03/2018, 1:47 AM
    Hey y'all, I'm suddenly having gateway timeouts on the free tier of Graphcool cloud. Anyone else having issues?
    👍 1
    p
    • 2
    • 1
  • s

    sajmil

    03/03/2018, 2:02 AM
    Yea same and im paying
  • m

    moosecouture

    03/03/2018, 2:41 AM
    I am new to Prisma so please bear with me... I want to make a way to query a product and have a list specific to the current user... And never another option... Like an inventory list... I would not want to allow sharing of this and would want it to always be recalculated... Is there a way to make a custom type resolver to allow this functionality?
    v
    n
    • 3
    • 4
  • r

    risjai

    03/03/2018, 7:20 AM
    hello everyone
  • r

    risjai

    03/03/2018, 7:21 AM
    I reset my prisma credentials, and after that I am facing below error whenever I do some query :
    Copy code
    [Network error]: Error: GraphQL Error (Code: 200)
    Error: GraphQL Error (Code: 200)
        at BatchedGraphQLClient.<anonymous>
    I even tried prisma deploy, still no luck.
    n
    • 2
    • 16
  • r

    risjai

    03/03/2018, 7:24 AM
    the issue is similar to : https://github.com/graphcool/http-link-dataloader/issues/4
  • p

    pasa

    03/03/2018, 7:50 AM
    Hey there, I just created my first prisma project and was wondering how to configure the playground to use another port than 3000, as I prefer this port for my frontend dev.
    n
    j
    • 3
    • 2
  • t

    Tman

    03/03/2018, 8:59 AM
    We sometimes have a long wait time (hours) before new fields that were added on our production Graphcool database model is available to our frontend app. Is that an expected behaviour? The problem has resolved itself in the past in a couple of hours, but this constraint has meant we deployed frontends pointing to production db that were just broken for a few hours.
    n
    • 2
    • 5
  • r

    risjai

    03/03/2018, 12:37 PM
    Guys, could someone please review : https://github.com/graphcool/http-link-dataloader/pull/5
  • j

    jamiehalvorson

    03/03/2018, 1:19 PM
    hey, I’ve been experiencing this issue for the past day or two and can’t see what’s up. When I run
    prisma deploy
    to prisma cloud I get this:
    Copy code
    Deploying service `XXX` to stage `dev` on cluster `XXX` 1.3s
    
    Changes:
    
      Class (Type)
      + Created field `lowerTitle` of type `String!`
    
      User (Type)
      ~ Updated field `avatar`
    
      FileToUser (Relation)
      + Created relation between File and User
    
    Applying changes (12/3) ⡿
    It just sits there spinning until I kill it, never ends. However, when I view my deployment history on app.prisma.sh I see that it looks like it worked:
    Copy code
    Jamie added 1 field, updated 1 field, added 1 relation.
    4 minutes ago
    But when I view the Data Browser I can’t see my new fields. Local stuff all works fine, just deployments to prisma cloud aren’t working for me. Any help/pointers are greatly appreciated. Thanks!
    • 1
    • 1
  • r

    risjai

    03/03/2018, 2:36 PM
    What is graphql's answer to request caching (every request is POST in graphql) ? Most of the CDNs don't entertain POST request caching, even those who do, have limits like 2KB. Pointed out at : https://kellysutton.com/2017/01/02/do-we-need-graphql.html
  • n

    notrab

    03/03/2018, 3:03 PM
    Prisma users... I can't search docs to check but did this change recently?
    Copy code
    features {
        value: id
        label: name
      }
  • n

    notrab

    03/03/2018, 3:03 PM
    I can't seem to reassign
    id
    to
    value
    n
    • 2
    • 9
  • n

    notrab

    03/03/2018, 3:06 PM
    Or am I now expected to do that in my server using something like
    .map(feat => ({value: feat.id, label: feat.name}))
1...593594595...637Latest