https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • r

    rein

    08/04/2018, 1:30 PM
    anyone else having troubles deploying to prisma?
    a
    c
    b
    • 4
    • 16
  • k

    kratam

    08/05/2018, 3:59 PM
    noob question, but in the graphql boilerplate typescript example (https://github.com/graphql-boilerplates/typescript-graphql-server), if I run
    npm run build
    , the
    *.graphql
    files are not copied to the
    dist
    folder. question 1) what do I have to add to
    tsconfig.json
    in order to copy them? question 2)
    typeDefs: './src/schema.graphql'
    doesn't work even if I remove
    src/
    from the path. If I add the
    graphql-import
    package I can import the schema but only using an absolute path,
    const typeDefs = importSchema('schema.graphql')
    (or
    './schema.graphql'
    ) doesn't work - what am I doing wrong?
    b
    • 2
    • 1
  • h

    harrisrobin

    08/05/2018, 4:25 PM
    Running into a weird issue.. even though I have a .env.prod present in my root directory, if I run
    prisma deploy -e .env.prod
    , it does not pick up on the correct environment variable but instead uses the .env file which points to my local server
    n
    n
    • 3
    • 10
  • h

    harrisrobin

    08/05/2018, 4:25 PM
    did anything change, this use to work on an older project
  • h

    harrisrobin

    08/05/2018, 4:25 PM
    im using the latest version of Prisma
  • i

    iamclaytonray

    08/05/2018, 5:05 PM
    Does nayone know how I would go about getting my old graphcool account deleted? Or at least, the projects I had under that account deleted? After the migration to Prisma, I guess my account’s details (auth data) was changed because I can’t sign in
    n
    • 2
    • 1
  • t

    tyler

    08/05/2018, 8:40 PM
    So running this https://docs-beta.prisma.io/1.13/get-started/01-setting-up-prisma-existing-database-a003/
  • t

    tyler

    08/05/2018, 8:40 PM
    But getting stuck on the
    prisma introspect
    command
  • t

    tyler

    08/05/2018, 8:40 PM
    Copy code
    $ prisma introspect
     ▸    Couldn't find `prisma.yml` file. Are you in the right directory?
    
    Get in touch if you need help: <https://www.prisma.io/forum/>
    To get more detailed output, run $ export DEBUG="*"
  • a

    abs-zero

    08/06/2018, 3:25 AM
    what is the difference between
    Copy code
    mutation {
      addTodo
    }
    and
    Copy code
    mutation addTodo {
    }
  • r

    regirock365

    08/06/2018, 3:26 AM
    @abs-zero Best of my knowledge the first is applies a mutation called addTodo, the second is a mutation by the name of addTodo but no mutations have been applied
  • r

    regirock365

    08/06/2018, 3:27 AM
    I also have a question. Is it possible in my schema to have a relationship with conditions. For example a Bar type can only have a Customer that is above a certain age?
  • a

    abs-zero

    08/06/2018, 3:38 AM
    @regirock365 probably with directive
  • q

    qsys

    08/06/2018, 4:44 AM
    I'm a bit confused about prisma and graphcool: both seem to have a cloud solution and a cli. They seem to be very similar to me, but a different pricing model. Why would one choose for the limited free graphcool cloud, if free prisma cloud is the same without the restrictions?
  • r

    rein

    08/06/2018, 8:01 AM
    any ETA on the public roadmap yet?
    🙏 3
  • m

    Moritz

    08/06/2018, 9:59 AM
    Hi, what are the plans for
    redis
    support in prisma? I would like to build a backend for a real time game with rather small traffic but high demands on speed/performace. Is prisma an option here or would you recommend something else?
    s
    h
    • 3
    • 2
  • l

    lawjolla

    08/06/2018, 6:33 PM
    Is there a way to update a deployed Heroku Prisma server?
    😳 1
  • r

    rust

    08/06/2018, 8:59 PM
    Hi ! How would you guys explain graphql (and / or prisma) to a 6 year old child ?
  • n

    Nick

    08/06/2018, 9:46 PM
    @rust https://goo.gl/images/JE6vWu Graphql in a nutshell basically you getting all the data your app needs in a single request. Prisma is just a database layer thanks to graphql-bindings makes it easier to write your query. The alternative would be writing a sql statement(raw SQL-queries) which quickly would turn out to be a nightmare because graphql queries can be nested multiple levels deep.
  • w

    w0wka91

    08/07/2018, 2:42 AM
    Hey there. I'm trying to build the prisma-cli but i always get an error. It's the script 'cp-assets.sh' which triggers that error: cp: dist/commands/init/boilerplate: No such file or directory cp: src/commands/init/boilerplate: unable to copy extended attributes to dist/commands/init/boilerplate: No such file or directory cp: dist/commands/init/boilerplate/datamodel.graphql: No such file or directory cp: dist/commands/init/boilerplate/prisma.yml: No such file or directory cp: dist/commands/init/boilerplate/docker-compose.yml: No such file or directory Anyone with the same problem? (I'm on the develop branch!)
  • z

    zak.singh

    08/07/2018, 6:57 AM
    when "masking" a type by redefining it in the public-facing graphql server, is it necessary to have all the decorators present? i.e. if there's an @relation on the field in the datamodel, do I need it on the mask as well? same question goes for @unique, @default
  • z

    zak.singh

    08/07/2018, 7:17 AM
    Here is an example of "masking" from the prisma examples: https://github.com/prismagraphql/prisma/blob/master/examples/authentication/src/schema/schema.graphql
    n
    • 2
    • 4
  • z

    zak.singh

    08/07/2018, 7:17 AM
    here you can see the @unique decorator is missing from the
    id
    field on User
  • m

    matus.congrady

    08/07/2018, 7:57 AM
    Hey, we would like to update the (prisma generated) database with a raw SQL query. Is there anything that might go wrong, if we update the db without using prisma?
    👍 1
    k
    h
    • 3
    • 3
  • n

    Nick

    08/07/2018, 11:49 AM
    Authentication with prisma and apollo feels hard to grasp
    n
    z
    +2
    • 5
    • 22
  • k

    kratam

    08/07/2018, 1:45 PM
    Sorry for the noob question: the prisma docker examples use dockercompose. I've searched for tutorials on how to deploy docker containers to cloud providers like heroku, but they all require a Dockerfile. Is it possible to create a Dockerfile from the
    image
    prismagraphql/prisma:1.13
    ?
    m
    d
    • 3
    • 6
  • o

    Oluwajubelo

    08/07/2018, 5:47 PM
    Good day all. I'm a beginner in graphcool , so please pardon me, my question might sound funny. How can I connect graphcool to my local mysql database
  • o

    Oluwajubelo

    08/07/2018, 5:47 PM
    Is it possible or there are better alternatives
  • c

    chandlervdw

    08/07/2018, 5:50 PM
    @nilan when I try to run the quickstart demo project, I get
    url_1.URL is not a constructor
    upon
    prisma deploy
    . 😬
    n
    • 2
    • 3
  • r

    raul

    08/07/2018, 5:50 PM
    Hi, I have a newbie question. What is the best practice for using prisma in production, using the graphql server for example via now.sh or expose directly prisma server for a basic crud app?
    🧐 1
1...949596...637Latest