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

    siyfion

    02/05/2018, 12:01 PM
    Anyone around that can go over some of the Prisma architecture?
  • s

    siyfion

    02/05/2018, 12:02 PM
    Am I right in thinking that essentially the CLI
    init
    creates two graphql servers in effect? One running in the cloud on Prisma's servers? One deployable to an endpoint of your choosing?
  • s

    siyfion

    02/05/2018, 12:03 PM
    e.g. a
    db
    graphql server and and
    app
    server that limits queries to whatever your require.
  • s

    siyfion

    02/05/2018, 12:04 PM
    It seems as though I've got complete-control over the
    app
    server, and none at all, over the
    db
    server, is that correct?
    a
    • 2
    • 4
  • d

    divyendu

    02/05/2018, 12:15 PM
    Is there a way to force generate
    prisma.graphql
    ? For some reason on my local,
    prisma deploy
    worked but did not update generated
    prisma.graphql
    m
    • 2
    • 3
  • g

    Glenn Schleicher

    02/05/2018, 12:29 PM
    Hi, first of all, loving Graphcool so far . Previously I was getting mired in the complexity / volume of work required to build CRUD resolvers for a complex schema against a MongoDB db. Graphcool has been a godsend.
  • g

    Glenn Schleicher

    02/05/2018, 12:32 PM
    Just ran into something I have not seen before: I renamed a field in a schema (keeping the type the same) and deployed into the Graphcool cloud (with --force). The deploy succeeds but the change does not get picked up.
  • g

    Glenn Schleicher

    02/05/2018, 12:36 PM
    Any ideas on how to resolve? I am ok with cleaning the graphcool project competely (no data is yet loaded against the schema) but don't want / need to start with a "init"...I want to really do a sort of capital "F" style force to completely overwrite the graphcool backend schema..but not sure that is possible. Other less drastic suggestions welcome!
  • s

    stearm

    02/05/2018, 2:45 PM
    hi guys, someone has tried
    apollo-link-state
    ? I watched the tutorial on their github repo. It seems a good library but it is not specified if mutations must change local state (cache) in an immutable way or not… it could be inconvenient because of verbosity…
    a
    • 2
    • 1
  • s

    stearm

    02/05/2018, 2:46 PM
    I use immutable.js in redux to get immutability in my apps
    l
    • 2
    • 2
  • a

    andre

    02/05/2018, 5:16 PM
    What do you think is the best practice to represent an one-to-one relationship where the “right side” is optional:
    Copy code
    type User {
      id: ID! @unique
      username: String! @unique
      email: String! @unique
      password: String!
      salt: String!
      profile: Profile
    }
    
    type Profile {
      id: ID! @unique
      firstname: String
      lastname: String
      about: String
    }
    The
    Profile
    of the
    User
    is not mandatory, but should be creatable when the user wants to add additional information. How would you model that? 🙂
    m
    • 2
    • 8
  • l

    lastmjs

    02/05/2018, 5:42 PM
    Anyone else not able to see all of their function logs? My logs are 4 days old for one of my functions
    👍 2
  • d

    Dninja

    02/05/2018, 5:59 PM
    Is there a way to use remote resolvers instead of graphcool functions with graphcool?
    m
    m
    • 3
    • 5
  • d

    Dninja

    02/05/2018, 6:05 PM
    Is anyone else having issues saving and updating functions? Also not getting all the logs from the test runs. Not sure if it's a bug or if i'm doing something wrong
    l
    • 2
    • 2
  • a

    Aler Denisov

    02/05/2018, 6:27 PM
    Guys, how to reset database with a prisma? I'm playing around and latest changes break my db (I suppose)
    a
    • 2
    • 3
  • a

    Aler Denisov

    02/05/2018, 6:28 PM
    because it throws
    "message": "Whoops. Looks like an internal server error. Search your cluster logs for request ID: api:api:cjdajmw9t000j01328njd7msn",
    on correct mutation
  • a

    Aler Denisov

    02/05/2018, 6:28 PM
    as well as
    java.sql.SQLSyntaxErrorException: (conn=2) Unknown column 'role' in 'field list'
    in docker logs
  • s

    Simon Stenbæk Madsen

    02/05/2018, 7:10 PM
    Is it possible to import data without specifying an id, so that graphcool will generate an ID for each node?
    n
    • 2
    • 2
  • a

    Aler Denisov

    02/05/2018, 7:10 PM
    What is best datamodel way to define LocaleString?
  • a

    Aler Denisov

    02/05/2018, 7:11 PM
    I'm trying with a relation, but have no success.. LocalString is text data with different locales
  • a

    Aler Denisov

    02/05/2018, 7:11 PM
    Copy code
    scalar LocaleString {
      ru: String
      en: String
      zh: String
      jp: String
      fr: String
      de: String
    }
  • a

    Aler Denisov

    02/05/2018, 7:13 PM
    Copy code
    Post
        × A relation directive with a name must appear exactly 2 times. Relation name: 'PostTitle'
        × A relation directive with a name must appear exactly 2 times. Relation name: 'PostText'
    Сan't figure out how to use multiple to-one relations with Prisma
  • n

    nilan

    02/05/2018, 8:04 PM
    look who's here! 😄 welcome @terosaarikivi
  • m

    Marc Qualie

    02/05/2018, 9:48 PM
    Hey. So with Prisma, what is the plan with graph.cool? Currently we’re experiencing a ton of problems and can’t scale on graph.cool at all, and it’s not even a big product. Are there any planned performance/deployment fixes coming to graph.cool, and if not will they be in prisma, and what is the upgrade path like?
    👍 2
  • t

    tim

    02/05/2018, 10:46 PM
    Hi, all. Does anybody know if there is a way to run a lambda on a certain period as we can with AWS schedules?
    m
    • 2
    • 1
  • p

    peteflange

    02/05/2018, 10:49 PM
    hey does anyone have an idea with this one? https://stackoverflow.com/questions/48632590/passing-input-value-to-my-graphql-mutation-react-react-apollo
  • a

    alec

    02/05/2018, 11:05 PM
    Anyone have any boilerplate for doing queries, mutations, AND subscriptions in a react native / apollo project? I cant get subscriptions / websockets working
    d
    • 2
    • 2
  • t

    tim

    02/05/2018, 11:06 PM
    @alec, maybe just post the problems you are having and people can help out with those?
  • a

    alec

    02/05/2018, 11:13 PM
    @tim I was using this tutorial https://blog.graph.cool/how-to-build-a-real-time-chat-with-graphql-subscriptions-and-apollo-d4004369b0d4 I think it is out of date
  • a

    Aguilar

    02/05/2018, 11:48 PM
    Hello, sorry for silly question : I'm doing a Nested create mutations like this:
1...560561562...637Latest