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

    zaksingh

    09/30/2017, 6:39 PM
    How do I refer to an enum in my application? I need to check if
    assignment.status
    (which is an enum) has a value of
    NORMAL
    (one of the possible values). My code right now is
    Copy code
    if (assignment.status === 'NORMAL') {...}
    , but it doesn't work.
    e
    • 2
    • 35
  • a

    agartha

    09/30/2017, 6:45 PM
    Anyone else having problems opening the console, system API request is pending.......... @nilan
    😭 1
    ✅ 1
    n
    • 2
    • 2
  • n

    nilan

    09/30/2017, 6:54 PM
    Hey everyone <!here>, I'm happy to announce the latest version of Graphcool 🎉 Apart from changes to system fields and terminology, it includes many bug fixes and incorporates a lot of the feedback received in the Framework Preview Program. Furthermore, we open sourced the GraphQL Playground and new content for GraphQL Radio & GraphQL Talks. Go check out the full release notes here: https://www.graph.cool/forum/t/changelog-release-v0-4/1093?u=nilan
    🎉 4
    🦜 1
    🔥 8
    👍 9
    graphcool 1
    💯 14
    💚 2
  • p

    peterp

    09/30/2017, 6:54 PM
    Congrats everyone!!!
  • n

    notrab

    09/30/2017, 6:55 PM
    Shipping on a Saturday evening. You guys are champs!
  • y

    yus

    09/30/2017, 6:59 PM
    just gone live with a big project with graphcool @nilan @schickling
    🎉 6
    graphcool 1
    💚 1
    ❤️ 1
    n
    • 2
    • 2
  • y

    yus

    09/30/2017, 6:59 PM
    https://www.qantasassure.com/30-million-qantas-points-giveaway
  • y

    yus

    09/30/2017, 6:59 PM
    thanks for building a great tool
  • j

    jmichaliga

    09/30/2017, 7:02 PM
    Cool stuff guys! This may actually be the most exciting day in the history of the internet.
    🙀 1
    👍 1
    n
    • 2
    • 1
  • j

    jmichaliga

    09/30/2017, 7:03 PM
    It all goes down from here, so enjoy! 🙂
  • r

    rein

    09/30/2017, 7:42 PM
    is there something special I have to do to be able to use the data I get back from a query? Im trying to fetch a profile but even tho I get the data back I cannot do user.lastName for example
  • r

    rein

    09/30/2017, 7:42 PM
    plus, the response looks rather convoluted, with _typeName, symbols, etc. Not easy to make sense of
  • c

    coolboyjules

    09/30/2017, 8:31 PM
    hi all. I'm trying to query my User type on my
    confirmToken
    field, but even in the playground I am getting a 'unknown argument "confirmToken" on field "User" of type query. Here is my query:
    Copy code
    query MyQuery{
      User(confirmToken: "email"){
        id
      }
    }
    And my schema
    Copy code
    type User implements Node {
      createdAt: DateTime!
      email: String @isUnique
      firstName: String!
      lastName: String!
      id: ID! @isUnique
      password: String
      updatedAt: DateTime!
      confirmToken: String!
      confirmExpires: DateTime!
    }
    The only fields I can query are
    id
    and
    email
    . Am I doing something wrong?
  • c

    coolboyjules

    09/30/2017, 8:37 PM
    (I'm running the queries as Admin so I dont think there should be any permission issues)
  • a

    agartha

    09/30/2017, 8:42 PM
    @coolboyjules Your field is not unique
  • c

    coolboyjules

    09/30/2017, 8:47 PM
    got it
  • c

    coolboyjules

    09/30/2017, 8:47 PM
    so you can only query unique fields? otherwise you must use the predefined
    allUsers
    query and filter from there, yes?
  • c

    coolboyjules

    09/30/2017, 8:48 PM
    thinking about that it makes pretty good sense ....
  • c

    coolboyjules

    09/30/2017, 8:51 PM
    in the schema here then shouldn't
    confirmToken
    be updated to be
    @isUnique
    ? https://github.com/graphcool-examples/functions/blob/master/authentication/email-user-management/email-user-management.graphql
  • c

    coolboyjules

    09/30/2017, 8:52 PM
    would there be a possibility of collision?
  • a

    agartha

    09/30/2017, 8:58 PM
    Yes, it needs to be unique in order for that query to work
  • c

    coolboyjules

    09/30/2017, 8:58 PM
    got it
  • c

    coolboyjules

    09/30/2017, 8:58 PM
    i will submit a PR
  • a

    agartha

    09/30/2017, 8:58 PM
    It seems an error in the example
  • c

    coolboyjules

    09/30/2017, 8:58 PM
    yea
  • c

    coolboyjules

    09/30/2017, 8:58 PM
    instead of that i can do
  • a

    agartha

    09/30/2017, 8:58 PM
    Great, thanks
  • c

    coolboyjules

    09/30/2017, 8:59 PM
    Copy code
    query {
      allUsers(filter: {confirmToken: token}){
        confirmToken
      }
    }
  • c

    coolboyjules

    09/30/2017, 8:59 PM
    which doesn't require to change the schema, just the func
  • a

    agartha

    09/30/2017, 8:59 PM
    No, because that returns an array of users
1...355356357...637Latest