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

    jaybauer

    04/26/2018, 3:46 PM
    Hey guys, I just upgraded Prisma to 1.7.1, both on my project and globally, and I’m getting an “Invalid prisma.yml file” error, saying that “endpoint” is an additional property that shouldn’t be there. Any idea why?
    👍🏾 1
    b
    n
    • 3
    • 5
  • u

    user

    04/26/2018, 5:24 PM
    A file was commented on
  • u

    user

    04/26/2018, 5:27 PM
    A file was commented on
  • k

    KyleG

    04/26/2018, 5:41 PM
    I am in the process of standing up my first create-react-app client + graphql-yoga server + prisma + db Docker container stack on AWS and I'm very excited. Besides that, if anyone could give me a quick suggestion on the critical matter of changing the uri in my client's initialization of Apollo's http link in its
    index.js
    depending on some build configuration? Right now it's hardcoded to
    <http://localhost:4000>
    (and
    <ws://localhost:4000>
    for subscriptions) - is there a standard practice to change this value as obviously something like an ENV var won't suffice as it is client code running on a visitor's browser.
    n
    • 2
    • 6
  • m

    medelman

    04/26/2018, 6:46 PM
    Deploying with Prisma 1.7, after deploying succeeds and 'graphql get-schema' succeeds, I get the following error on the last hook: Running graphql prepare ! ▸ Invalid prisma.yml file ▸ prisma.yml should NOT have additional properties. additionalProperty: hooks ▸
    -.yaml
  • n

    nilan

    04/26/2018, 6:47 PM
    thread
    m
    h
    • 3
    • 15
  • a

    ameistad

    04/26/2018, 7:49 PM
    Does the line
    Copy code
    # import Post from "./generated/prisma.graphql"
    in schema.graphql do anything? If I remove it i get errors. I'm using the standard node-advance boilerplate from graphql create
    n
    k
    • 3
    • 10
  • r

    rleonr

    04/26/2018, 7:55 PM
    Is the tutorial on https://blog.graph.cool/designing-powerful-apis-with-graphql-query-parameters-8c44a04658a9 up to date? I can't make query parameters work at all. Are they deprecated?
    n
    • 2
    • 13
  • m

    michieldewilde

    04/26/2018, 11:53 PM
    Hello. I'm trying to deploy a typescript prisma server to now and I'm getting the following error (happens when dependencies are installed by npm, doesn't happen when they are installed with yarn.) Result of the
    npm run build
    command:
    Copy code
    > rimraf dist && tsc
    
    node_modules/@types/node/index.d.ts(2381,15): error TS2300: Duplicate identifier 'URL'.
    node_modules/@types/node/index.d.ts(2399,15): error TS2300: Duplicate identifier 'URLSearchParams'.
    node_modules/@types/node/index.d.ts(2417,14): error TS2661: Cannot export 'URL'. Only local declarations can be exported from a module.
    node_modules/@types/node/index.d.ts(2417,19): error TS2661: Cannot export 'URLSearchParams'. Only local declarations can be exported from a module.
    node_modules/typescript/lib/lib.dom.d.ts(13401,11): error TS2300: Duplicate identifier 'URL'.
    node_modules/typescript/lib/lib.dom.d.ts(13417,13): error TS2300: Duplicate identifier 'URL'.
    node_modules/typescript/lib/lib.dom.d.ts(13424,11): error TS2300: Duplicate identifier 'URLSearchParams'.
    node_modules/typescript/lib/lib.dom.d.ts(13451,13): error TS2300: Duplicate identifier 'URLSearchParams'.
    node_modules/typescript/lib/lib.dom.d.ts(15737,13): error TS2300: Duplicate identifier 'URL'.
    node_modules/typescript/lib/lib.dom.d.ts(15738,13): error TS2300: Duplicate identifier 'URLSearchParams'.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! server@0.1.0 build: `rimraf dist && tsc`
    npm ERR! Exit status 2
    npm ERR!
    npm ERR! Failed at the server@0.1.0 build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    I would be very grateful if somebody could help me with this.
    n
    • 2
    • 2
  • v

    virtualirfan

    04/27/2018, 12:41 AM
    How do I generate schema for subscriptions for relay?
    get-graphql-schema
    on the relay endpoint currently skips the subscription schema but it is returned for the simple API endpoint. I can't just copy paste the subscription schema sections into the relay schema because of missing types and general incompatibility between the two. What's a way to deal with this? I don't mind generating the missing subscription types/inputs via a script but I need help seeing what that should look like. Note: I'm OK switching to prisma at some point but can't do it just yet. Note: I'm aware of the discussion in https://github.com/graphcool/graphcool-framework/issues/85 and https://www.graph.cool/forum/t/relay-modern-subscriptions/420/7 but neither of those provides any details on how to go about converting to a relay schema from simple.
    n
    • 2
    • 7
  • f

    Fi1osof

    04/27/2018, 4:51 AM
    Hi all! Is there some caching enabled on latest prisma local? After update record in playground on port 4466 i receive actual data, but on port 4000 old data. Or maybe not... Removed all node_modules and reinstall them. Seems like works OK now. Strangly... Logs showed old data was returned by docker-server.
    n
    • 2
    • 2
  • r

    Raviv

    04/27/2018, 7:58 AM
    Hi, Is there a way to query contacted fields? Say i have firstName and lastName fields in the type and i want to query like {firstName+lastName}_contains. What is the best way to accomplish that?
    h
    s
    • 3
    • 9
  • m

    Moritz

    04/27/2018, 8:46 AM
    Hi, when I create a new prims app via
    prisma init
    , im no longer being pointed to selecting a boilerplate? is this intended in 1.7 ? The docs dont reflect any changes. Thanks!
    n
    • 2
    • 4
  • m

    max

    04/27/2018, 8:56 AM
    the graphcool team have been working hard. Over the last month, 98 issues closed against 55 new issues. 37 merged pull requests and the release of
    prisma 1.7
    https://github.com/graphcool/prisma/pulse/monthly. Well done parrotwave6🚀💯👍graphcool
    🔨 1
    💚 2
    🐛 1
    parrotwave6 1
    🙌 5
    fast parrot 2
  • t

    taikn

    04/27/2018, 9:00 AM
    Sandbox seems to be still on
    1.6.3
    are there plans to bring it to the latest version?🤔
    n
    • 2
    • 1
  • h

    hamdi

    04/27/2018, 9:26 AM
    hi i want to mix this to export in one export export default withStyles(styles)(RecipeReviewCard); export default graphql(ClaimQuery)(RecipeReviewCard);
    m
    t
    w
    • 4
    • 6
  • j

    john

    04/27/2018, 10:48 AM
    Can I deploy my local projects [ DB not in docker ] in "app.prisma.sh". I can't see anything in your GUI [ app.prisma.sh ] when i use "prisma deploy" from my project structure. 🙂 🤔 PRISMA 1.7
    🇮🇳 1
  • a

    Alex

    04/27/2018, 1:06 PM
    hey guys, can we require/import modules from the functions cloud console ?
    t
    • 2
    • 4
  • m

    Moritz

    04/27/2018, 1:15 PM
    Hi all, im getting the following error when deploying only since a few minutes:
    Copy code
    ERROR: Workspace * does not exist
    
    {
      "data": {
        "generateClusterToken": null
      },
    Any ideas? this is happening since upgrading prisma to 1.7.2
    😱 1
    ✅ 1
    t
    s
    t
    • 4
    • 6
  • p

    Philippe

    04/27/2018, 1:51 PM
    Hi Guys, we got a error on react-fullstack-boilerplate: https://github.com/graphql-boilerplates/react-fullstack-graphql/pull/321 please fix it.
    n
    • 2
    • 3
  • p

    Philippe

    04/27/2018, 1:51 PM
    Its a apollo-boost dependency missing
  • b

    benwis

    04/27/2018, 4:18 PM
    I'm trying to run prisma init with an existing postgreSQL database but it doesn't ask for a database name and then fails to connect to the database with my local username? Is there a way to specifiy database name?
    n
    • 2
    • 2
  • v

    virtualirfan

    04/27/2018, 6:11 PM
    Is the
    _<>Meta
    syntax standard GraphQL syntactic sugar or a specific extension by graph.cool? See: https://www.howtographql.com/react-relay/7-subscriptions/ and scroll down or search for
    _votesMeta
    (
    _votesMeta { count }
    ).
    n
    • 2
    • 4
  • a

    Amal

    04/27/2018, 9:03 PM
    Hi, How can I model lineage in a schema as in capture parent child relationship?
  • a

    Amal

    04/27/2018, 9:06 PM
    Is it possible to have 'directed edges' instead of the symmetric one that the relation directive specifies?
    Copy code
    type Person @model {
      id: ID! @isUnique
      firstName: String!
      surName: String!
      gender: String
      dateOfBirth: DateTime
      mother: Person @relation(name: "Mother")
      father: Person @relation(name: "Father")
      children: [Person!]! @relation(name: "Children")
    }
    n
    • 2
    • 2
  • c

    cloudpilot

    04/27/2018, 9:18 PM
    i can't get through
    ERROR: Authentication token is invalid: Token can't be decoded: Expected token [null] to be composed of 2 or 3 parts separated by dots.
    d
    n
    • 3
    • 3
  • c

    cloudpilot

    04/27/2018, 9:19 PM
    i think i need some kind of headless
    prisma login
  • c

    cloudpilot

    04/27/2018, 9:20 PM
    i have already tried to use prisma image
    1.8-beta
  • c

    cloudpilot

    04/27/2018, 9:20 PM
    and trying to deploy a service with
    prisma token
    and
    prisma deploy
  • v

    virtualirfan

    04/27/2018, 10:11 PM
    Has anyone tried relay-compiler@1.6.0? A schema and query-set that compiled fine with relay-compiler@1.4.1 nows fails with at 1.6.0. The reason why I wanted to upgrade was due to the
    Maximum call stack size exceeded
    error.
    Copy code
    $ relay-compiler --verbose --src ./queries/ --schema ./data/schema.graphql
    HINT: pass --watch to keep watching for changes.
    
    Writing js
    ERROR:
    rule is not a function
    From: CodegenRunner.write
        at /Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:73:12
        at Array.map (<anonymous>)
        at visitUsingRules (/Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:72:24)
        at validate (/Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:61:10)
        at Object.validateOrThrow [as validate] (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/GraphQLValidator.js:35:26)
        at convertASTDefinitions (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:117:33)
        at /Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:98:12
        at Object.run (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/GraphQLCompilerProfiler.js:52:30)
        at Object.convertASTDocumentsWithBase (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:44:47)
        at /Users/irfan/.config/yarn/global/node_modules/relay-compiler/bin/relay-compiler:9856:37
    • 1
    • 1
1...131415...637Latest