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

    Jonathan Romano

    01/15/2018, 12:14 AM
    I know, that's my question
  • e

    Emi

    01/15/2018, 12:14 AM
    Oh, god. I was running
    graphcool playground
    instead of
    graphql playground
    .
  • e

    Emi

    01/15/2018, 12:15 AM
    Now I can see the left pane!
  • j

    Jonathan Romano

    01/15/2018, 12:15 AM
    OH, wow, I'm slow.
    graphql-cli
    , not
    graphcool-cli
    . I'm blind
  • a

    agartha

    01/15/2018, 12:16 AM
    Okay, seems you both missed that 😄 Never mind, glad it works 😄
  • e

    Emi

    01/15/2018, 12:17 AM
    @agartha Is there any way to make it work with the standalone playground?
  • a

    agartha

    01/15/2018, 12:17 AM
    standalone?
  • j

    Jonathan Romano

    01/15/2018, 12:17 AM
    It was actually a bit confusing when I initially read about
    graphql-cli
    - the
    init
    command starts a graphcool project, and uses many graphcool utilities (like the playground)
  • j

    Jonathan Romano

    01/15/2018, 12:18 AM
    @Emi You should be able to just plug in the URL for your datamodel API
    👍🏻 1
  • j

    Jonathan Romano

    01/15/2018, 12:18 AM
    IE,
    localhost:60000/app-name/stage
  • j

    Jonathan Romano

    01/15/2018, 12:19 AM
    But you won't be able to see your datamodel and application API at the same time
  • e

    Emi

    01/15/2018, 12:19 AM
    Ok, it makes sense!
  • e

    Emi

    01/15/2018, 12:20 AM
    @agartha, I was referring to the Electron app.
  • a

    agartha

    01/15/2018, 12:22 AM
    You can just open the local folder in the Electron app
  • a

    agartha

    01/15/2018, 12:22 AM
    And you should get the same result
  • a

    agartha

    01/15/2018, 12:23 AM
    By the way, I also tested the yoga version of the playground. If I start with NODE_ENV=dev, I see the side bar, if I start without it, I don't
  • a

    agartha

    01/15/2018, 12:23 AM
    So still curious why that doesn't work for you
  • e

    Emi

    01/15/2018, 12:24 AM
    It works for me now. The issue was that I was running
    graphcool playground
    instead of
    graphql playground
    .
  • j

    Jonathan Romano

    01/15/2018, 12:25 AM
    That still shouldn't be the issue
  • j

    Jonathan Romano

    01/15/2018, 12:25 AM
    I (essentially) use
    graphcool playground
  • j

    Jonathan Romano

    01/15/2018, 12:26 AM
    (That is, I am using the beta version of graphcool, run
    npm start
    , then go to my app/stage's endpoint)
  • e

    Emi

    01/15/2018, 12:26 AM
    I've opened the folder with playground and it shows the left pane, but just with app (not database).
  • h

    harmony

    01/15/2018, 12:27 AM
    which shell are you running?
  • h

    harmony

    01/15/2018, 12:27 AM
    also what does your start script look like?
  • e

    Emi

    01/15/2018, 12:28 AM
    I'm on windows with CMD. This is my package.json: { "name": "my-app", "scripts": { "start": "cross-env NODE_ENV=dev node src/index.js", "playground": "graphcool playground" }, "dependencies": { "graphcool-binding": "1.3.5", "graphql-yoga": "^1.1.7" }, "devDependencies": { "cross-env": "^5.1.3", "graphcool": "1.0.0-beta4.1.1" } }
  • a

    agartha

    01/15/2018, 12:28 AM
    graphcool playground
    will open the playground for your database API (the Graphcool server). That will never show your workspace panel on the left
    👍 1
  • h

    harmony

    01/15/2018, 12:29 AM
    but just with app (not database).
  • h

    harmony

    01/15/2018, 12:29 AM
    it's the other way around
  • j

    Jonathan Romano

    01/15/2018, 12:29 AM
    Really? As I said, when I run
    npm start
    then go to the API endpoint in my browser, it shows both
  • j

    Jonathan Romano

    01/15/2018, 12:29 AM
    So it looks like we're all seeing different things?
1...511512513...637Latest