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

    drk

    02/19/2018, 11:59 PM
    has anyone gotten
    Error: Cannot use GraphQLSchema "[object Object]" from another module or realm.
    when running
    yarn dev
    using the advanced typescript template?
    h
    • 2
    • 14
  • d

    drk

    02/19/2018, 11:59 PM
    haven’t made any code changes and just following the quick start guide
  • a

    aeblin

    02/20/2018, 12:05 AM
    Feels like a dumb question, but I’m using graphql-yoga to bootstrap an Apollo server. I’m noticing in my files using gql, ESLint is throwing an error that
    graphql-tag is not listed in the project's dependencies.
    Since graphql-tag is bundled in graphql-yoga, I know it’s available. How do I make that clear to ESLint?
    h
    f
    • 3
    • 3
  • a

    alx

    02/20/2018, 1:10 AM
    what's the best way to validate graphql queries files using the schema that you get from
    graphql-cli
    ? The graphql validate function seems to want it in this format: https://github.com/graphql/graphql-js/blob/master/src/validation/__tests__/harness.js#L329. Is there some type of parser or loader I can use? Or is there an easier way to validate a query? Thanks!
    n
    • 2
    • 1
  • n

    niwat

    02/20/2018, 2:58 AM
    does anyone else have issues with CLI import? (graphql-framework). Message is saying : Unzipping... ⣻ Error: invalid signature: 0x80014
  • n

    nick

    02/20/2018, 4:50 AM
    a few noob questions: 1) what is wrong with the above (title for the project name)? 2) if I have already started my react (dummy) project, and then I went on to graphcool to create the schema, do I want to clone? or do I want to use the cli to init? and if so, where do I get the url I put after the --schema tag? In the example tutorial videos, it looks like "graphcool init --schema https://graphqlbin.com/hn-relay.graphql -- name Hackernews", but I can't find a graphql file in my project on graph.cool (though I could be missing something obvious...)
  • u

    user

    02/20/2018, 6:28 AM
    @Fitch commented on @nick’s file

    https://prisma.slack.com/files/U9BJ1J810/F9BMM5U3F/graphcool_clone.png▾

    : Use the cli to init , but it doesnt like spaces in the name.
  • e

    eddig

    02/20/2018, 6:56 AM
    Hi Graphcool team! We have trouble with using the Legacy Console project, particularly in using the functions. Please, look at this screenshot https://monosnap.com/file/Hsxo3lVDI9Rx0dFP8YCXzZrZ9abY5z we have a bunch of this messages that don’t make clearer in which part of our function we should find the trouble. We verified all places where we use the
    map
    function and believe that cover all, but we still have this error. Would be cool to have at least the
    event
    in addition to
    error
    for testing it inside the function. But if in the error will be the meaningful line number that points to the place in our function where the error appears it would be amazing! 🤩 The question, is any chance of having this changes in the Legacy Console project, or we need to migrate to the Graphcool Framework? Is in the Graphcool Framework we will have more helpful tools for figuring out where the problems in our functions? Thanks for your work!
  • s

    sixtatami

    02/20/2018, 9:38 AM
    hi, I am lost now with Prisma deploy to prisma cluster and the endpoints. The endpoints I can not access from playground. How does this work? (Sorry if this was answered before)
  • s

    sixtatami

    02/20/2018, 9:52 AM
    this is my what i get from Prisma CLI:
  • s

    sixtatami

    02/20/2018, 9:52 AM
    dev (cluster:
    prisma-eu1
    ) HTTP: https://eu1.prisma.sh/wisy-6/dev Websocket: https://eu1.prisma.sh/wisy-6/dev
  • s

    sixtatami

    02/20/2018, 9:54 AM
    I thought i could just use these URLs in the playground, but I guess I missed something?
    n
    r
    • 3
    • 11
  • l

    lawrence

    02/20/2018, 11:37 AM
    Changing the prisma schema (removing types and relations) and deploying is not updating the generated schema when running
    prisma deploy
    - is there something I’m missing when removing data types?
    n
    • 2
    • 1
  • t

    tomhut

    02/20/2018, 11:53 AM
    Anybody else seeing cloudfront errors this morning on graphcool cloud?
    👍 1
    t
    l
    n
    • 4
    • 6
  • n

    noahdavis

    02/20/2018, 12:33 PM
    Has anyone hit this error before:
    Copy code
    {
      "data": {
        "signup": null
      },
      "errors": [
        {
          "message": "Field \"user\" of type \"User\" must have a selection of subfields. Did you mean \"user { ... }\"?",
          "locations": [
            {
              "line": 3,
              "column": 3
            }
          ],
          "path": [
            "signup"
          ]
        }
      ]
    }
    ^ just started happening, doesn't matter if we are using the prisma cloud deployed data store (AWS Aurora) or the public clusters
    j
    n
    • 3
    • 23
  • n

    noahdavis

    02/20/2018, 12:34 PM
    Is this just an improper written mutation in my resolver that's just catching now for some reason?
  • e

    eddig

    02/20/2018, 12:39 PM
    Seriously, maybe I asked something not clear or give too small information about a problem, I admit that it can be my bad. But can you give me just a direction in which I should work to take some response on my questions (https://graphcool.slack.com/archives/C0MQJ62NL/p1519109799000160 https://graphcool.slack.com/archives/C0MQJ62NL/p1518446381000120 https://www.graph.cool/forum/t/the-lag-between-relay-and-simple-endpoints-updates/2503)?
  • z

    zonofthor

    02/20/2018, 1:07 PM
    so in CLI: graphcool deploy to upload local changes - what about syncing back from remote??
  • e

    eddig

    02/20/2018, 1:34 PM
    Ok, try to take more information about the problem. We have a type
    Profile
    and few subscriptions to create/update this type of node. When we test creating the profile via playground in the legacy graphcool console
    <https://console.graph.cool/_project_/playground>
    (https://monosnap.com/file/hCt94k7a3EqqaOsVLqwfgX0K4HEhlk) the subscription function works as expected without errors in the logs, but when we try to create the profile via our endpoint’s playground
    <https://api.graph.cool/relay/v1/_project_>
    (https://monosnap.com/file/kSZ5okqqO2of0GfJuiFkRSui2fitUo) we always have an error about using
    map
    function on null, but as I understand there shouldn’t be difference in how we create the profile, since we send the same data when creating profile the data in the subscription’s event would be the same. In anyway we can’t see in the logs what
    event
    is passed to the subscription function. We have this https://monosnap.com/file/qn6iu9GPQHz7Q7YR5WF3Ltzt3RjJQo result, the red strings is running
    createProfile
    through the endpoint’s playground or our frontend, the white from the Graphcool Console playground. Please, advice where maybe the problem?
  • r

    Rob Murtagh

    02/20/2018, 3:16 PM
    Hi, I’m having trouble finding my GraphQL endpoint in playground. prisma generates urls such as https://eu1.prisma.sh/experiments-prisma/dev, but they don’t appear valid when I navigate to them. Same issue using localhost:4466 for a local docker deployment. Sure I must be missing something simple here?…
  • v

    Ventura

    02/20/2018, 3:22 PM
    Hi, I'm starting to see the option of the Graph.cool to the startup I work for and I can't find how I can connect the database that I already have inside AWS with the Graph.cool. Anyone has some material about it? Or the solution is to use Prisma?
    t
    • 2
    • 1
  • j

    jacqui

    02/20/2018, 3:35 PM
    We're not able to view our projects in the console.graph.cool - is there any known issues with the service?
  • j

    jsan

    02/20/2018, 3:40 PM
    i am also starting to get cloudfront error
  • j

    jsan

    02/20/2018, 3:40 PM
    Copy code
    ERROR
    The request could not be satisfied.
    CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
  • j

    jsan

    02/20/2018, 3:41 PM
    this is what i am getting when my client tries to connect to the api
  • f

    Fitch

    02/20/2018, 3:48 PM
    Might be cloudfront region refresh. We see it from time to time.. try a dns flush or connecting via a vpn to confirm
  • f

    Fitch

    02/20/2018, 3:49 PM
    https://api.graph.cool/simple/v1/&lt;endpoint&gt; .. can usually reach the api even when console is refreshing
  • s

    senorcodecat

    02/20/2018, 6:41 PM
    I feel like I'm missing something super basic here, but my brain is shot. Shouldn't this return ONLY users who have both Anaheim Bootcamp location AND do not have an attended bootcamp of Anaheim? It's giving me a list of all users, including ones that have attended=Anaheim and have a null Bootcamp location.
  • s

    senorcodecat

    02/20/2018, 6:42 PM
    Copy code
    query {
      allUsers (filter: { AND: [
      	{bootCamps_every: {location: "Anaheim"}},
        {bootCampsAttended_none: {location: "Anaheim"}}
      ]}) {
        firstName
        lastName
        bootCamps {
          location
        }
        bootCampsAttended {
          location
        }
      }
    }
    f
    • 2
    • 13
  • p

    picosam

    02/20/2018, 7:15 PM
    Anyone was able to make sense of this:
    Copy code
    Listening for transport dt_socket at address: 8000
    /opt/jdk1.8.0_162/jre/lib/rt.jar: invalid LOC header (bad signature)
    It appears in the
    local_prisma-database_1
    docker container that’s created during the
    prisma init
    process — I then end up having this forever:
    Copy code
    local           Local cluster (requires Docker)
    Booting local development cluster... ⣽
    I believe it may be the same issue reported at https://github.com/graphcool/prisma/issues/1901
    n
    • 2
    • 1
1...580581582...637Latest