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

    Adrián

    03/20/2018, 11:46 AM
    Any idea why it's failing?
  • a

    Adrián

    03/20/2018, 11:54 AM
    Fix it! I forgot to update the project id in Graphcool Function
    🙂 1
  • d

    davidyoung

    03/20/2018, 2:55 PM
    Getting a weird error on
    prisma deploy
  • d

    davidyoung

    03/20/2018, 2:56 PM
    -.js
  • d

    davidyoung

    03/20/2018, 2:57 PM
    Only comes in when I add a field on a type, formatting is correct from what I can see, literally no idea
    n
    • 2
    • 35
  • v

    Vendicto

    03/20/2018, 3:35 PM
    hi there, when I make a query ( I'm trying to get posts but they are didn't created yet ) I have an error
    Copy code
    const getPosts = graphql(GET_POSTS, {
        options: {
            variables: {
                first: 3
            }
        },
        alias: 'GetPostsAlias',
        props: ({data: { loading, fetchMore, allPosts } }) => {
            return {
                loading,
                allPosts,
                loadMorePosts(id, next) {
                    let variables = {
                        last: 1,
                        before: id,
                    };
                    if(next){
                        variables = {
                            first: 1,
                            after: id
                        }
                    }
                    return fetchMore({
                        query: GET_POSTS,
                        variables,
                        updateQuery: (previousResult, { fetchMoreResult }) => {
                            if (!fetchMoreResult.allPosts.length) { return previousResult; }
                            return {
                                ...previousResult,
                                allPosts: next
                                    ?[...previousResult.allPosts, ...fetchMoreResult.allPosts]
                                    :[...fetchMoreResult.allPosts, ...previousResult.allPosts]
                            }
                        },
                    });
                }
            };
        }
    });
    Error : Unhandled (in react-apollo:GetPostsAlias(Apollo(BrowseScreen))) Error: GraphQL error: Cannot return null for non-nullable type (line 10, column 5): How to fix this ?
    j
    • 2
    • 2
  • e

    ed

    03/20/2018, 4:18 PM
    is there any way to know what field is inserted in a relation field using subscriptions? as I see in the playground it is only available for scalar fields
  • r

    rein

    03/20/2018, 6:08 PM
    If I want to return a combination of data, for instance a user object but also the count of its friendships and comments, should I always make a payload type for that? Or is there another way that is better?
    l
    • 2
    • 2
  • g

    Gilad Shoham

    03/20/2018, 6:30 PM
    Hi Guys, Sharing my fresh Hackernoon post about how to make any GraphQL API easier to adopt through components which anyone can play with right from their project’s context. Enjoy and would love to know what you think! https://hackernoon.com/make-your-graphql-api-easier-to-adopt-through-components-74b022f195c1
  • n

    noahdavis

    03/20/2018, 6:38 PM
    Text Search + Prisma - examples? Trying to allow search on Strings and on related records
    l
    j
    • 3
    • 6
  • w

    wesbos

    03/20/2018, 7:37 PM
    Hey folks -how do I stop the yoga server?
  • w

    wesbos

    03/20/2018, 7:37 PM
    programatically
  • w

    wesbos

    03/20/2018, 7:37 PM
    trying server.close() but that doesn’t seem to do it
    l
    • 2
    • 11
  • t

    tsdexter

    03/20/2018, 8:46 PM
    is there currently an issue with subscriptions in the graphcool simple api? It’s no longer picking up on changes to relations, only scalar field changes are triggering it… even with a fairly open subscriptions such as:
    Copy code
    subscription {
      Ticket {
        node {
          id
          status {
            name
          }
        }
        updatedFields
      }
    }
    It picks up if I change a text field like
    description
    but not if I update the
    status
    • 1
    • 2
  • d

    dsoraluz

    03/20/2018, 10:48 PM
    Delete_Many_does_not_work_with_where_that_is_using_nested_data_.txt
  • p

    picosam

    03/21/2018, 10:36 AM
    Hello, this is from the docs:
    Note that the CLI will load environment variables from 3 different locations and in the following order:
    - The local environment
    - A file specified with the
    --dotenv
    parameter
    - if the
    --dotenvargument
    was omitted, a file called
    .env
    in the same directory
    My question is, does
    dotenv
    take care of this entirely or is there code that makes this happen as indicated above? UPDATE: I just did a few tests and it seems that
    dotenv
    takes care of that order indeed.
  • r

    rein

    03/21/2018, 11:29 AM
    anyone getting internal server errors when trying to create nodes in prisma cloud?
    k
    • 2
    • 1
  • n

    nghiepit

    03/21/2018, 11:59 AM
    Hi guys, https://github.com/graphcool/graphql-server-example/blob/master/src/resolvers/index.ts http://prntscr.com/iu92iq I didn't know what it was. I deleted it and still work without error. Why import them to
    resolvers/index.ts
    file.
  • v

    Vendicto

    03/21/2018, 12:10 PM
    How to make a Relation subscription from child to parent node ? For example I have Tag and Vote, and when I create new Vote(or delete) I want to update Tag node, how to do it ? http://prntscr.com/iu9mit
  • z

    zebapy

    03/21/2018, 12:15 PM
    do yall put your api code in same repo as client app or usually separate them?
    k
    h
    • 3
    • 2
  • j

    Joe

    03/21/2018, 3:26 PM
    Greeting guys, I am having trouble with prisma import command, and was wondering if anyone can help me solve the issue. Basically, I keep getting JSON validation errors, even on data that prisma export had produced. I even tried to copy/paste an example from the docs, but it still says invalid json. Has anyone seen this before?
  • j

    Joe

    03/21/2018, 3:26 PM
  • j

    Joe

    03/21/2018, 3:27 PM
  • j

    Joe

    03/21/2018, 3:28 PM
    if I delete the contents of this .json file, then import command goes through (without making any changes of course)
    l
    n
    • 3
    • 19
  • l

    lawjolla

    03/21/2018, 4:18 PM
    Are there any tutorials for a dataloder pattern for stitched resolvers (if possible)?
  • s

    sajmil

    03/21/2018, 6:39 PM
    anyone had trouble with graphcool deploy? I'm changing some files and it says success but they're not getting updated...
  • r

    ryan

    03/21/2018, 7:37 PM
    Hi everybody, I’m working on a React Native + GraphQL project for school and I need to implement subscriptions. I’ve been following along this awesome Apollo blog post (https://dev-blog.apollodata.com/tutorial-graphql-subscriptions-server-side-e51c32dc2951) and have been able to get everything to work. My issue is that I need to use a GraphQL IDE besides GraphiQL (because I need to be able to send HTTP headers), so I’ve been using GraphQL Playground. However, I’m unable to connect to the server (from the blog post) from GraphQL Playground. I’d appreciate any suggestions on connecting from GraphQL Playground!
    • 1
    • 1
  • r

    rein

    03/21/2018, 8:01 PM
    is there a way now, when I have a Post type, for example, that has a 'likes' field that is a [User!]! relation, to query the count of those likes when querying a list of Posts?
  • d

    Daniel K.

    03/21/2018, 8:02 PM
    I am starting to fall in love with Prisma 🙂 I mean, Graphcool was great idea, but with Prisma I think you have just nailed it having such a robust GraphQL API without worry about underlying database that allows me to write pretty complex stuff is so nice add the great tooling for a development and deployment and I dare to say it's ultimate solution for that ache in web app that has been here for so many years ... and not only web apps, I am currently using it for a React Native app
    🦜 1
    👏 7
  • t

    Till

    03/21/2018, 8:24 PM
    Hey, can someone gimme a hand on permissions?
    👏 1
    🔒 1
    d
    • 2
    • 30
1...616617618...637Latest