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

    stearm

    12/22/2017, 7:23 PM
    but in this way a
    Task
    must have a
    User
    . How can I achieve this?
  • s

    stearm

    12/22/2017, 7:25 PM
    in mysql I would have created a table “in the middle” of
    Task
    and
    User
    with a unique key (
    task_id
    ,
    user_id
    )
  • b

    brad.barnes

    12/22/2017, 7:26 PM
    Change task: [Task!]! to [Task] will allow both a null task and empty array of tasks
  • s

    stearm

    12/22/2017, 7:27 PM
    i tried but with following error message: The relation field
    tasks
    has the wrong format:
    [Task]
    Possible Formats:
    Task
    ,
    Task!
    ,
    [Task!]!
  • b

    brad.barnes

    12/22/2017, 7:30 PM
    hmm... I would think that would work. Maybe one of the graphcool guys knows. And it doesn't let the task get created without a user?
  • s

    stearm

    12/22/2017, 7:32 PM
    nope, this mutation:
  • s

    stearm

    12/22/2017, 7:32 PM
    Copy code
    mutation {
      createTask(
        title: "Example title", 
        description: "Example description"
        effortId: "cjbiafzl81e2c01740pknv81w"
      ) {
        id
      }
    }
  • s

    stearm

    12/22/2017, 7:32 PM
    returns:
    The field 'assignee' on type 'Task' is required. Performing this mutation would violate the constraint
  • b

    brad.barnes

    12/22/2017, 7:34 PM
    A work around would be to create an admin user "queue" to create all the tasks to, but of course the graphcool guys should be able to get you on the right route before we go doing something silly like that.
  • s

    stearm

    12/22/2017, 7:35 PM
    I agree, better to die lol 😂
  • r

    radicand

    12/22/2017, 7:37 PM
    @stearm, what about changing
    assignee: User! @relation(name: "UserTasks")
    =>
    assignee: User @relation(name: "UserTasks")
    ?
  • s

    stearm

    12/22/2017, 7:38 PM
    i tried, it return a different error
  • s

    stearm

    12/22/2017, 7:38 PM
    just wait a sec
  • s

    stearm

    12/22/2017, 7:39 PM
    no connect permission
    😮
  • n

    nilan

    12/22/2017, 9:15 PM
    Hey <!here>, we just released new versions of the Graphcool Framework and the Graphcool 1.0 developer preview ⚡ The Framework CLI in version
    0.11
    has been renamed to
    graphcool-framework
    and comes with data import and export: https://github.com/graphcool/framework/releases/tag/0.11.4 The Graphcool 1.0 developer preview enters stage
    beta2
    and is using the name
    graphcool
    going forward. It comes with features such as data import and export, improved nested mutations, delete/updateMany and more: https://github.com/graphcool/framework/pull/1318#issuecomment-353673128 Go check it out and let us know what you think 🙌
    🍻 6
    🚀 3
    🍼 1
    👍 10
    🎉 3
    💯 5
    🦜 14
    graphcool 7
    😎 4
    🎂 1
  • b

    brad.barnes

    12/22/2017, 9:18 PM
    @nilan Looks awsome
    💯 1
  • a

    aurnik

    12/22/2017, 10:00 PM
    -.txt
  • a

    aurnik

    12/22/2017, 10:00 PM
    Looks like the data export still doesn’t work for projects with a lot of nodes
  • a

    aurnik

    12/22/2017, 10:00 PM
    I just got an empty zip at the end
  • s

    senorcodecat

    12/22/2017, 11:24 PM
    Just setting up permissions now that everything is working (in beta). For my backend server, can I just set up a “catch all” permission that lets it do everything rather than using per-query permissions? For front end I get managing it that way, but my backend should be able to do everything.
  • p

    phil

    12/23/2017, 12:24 AM
    With the new framework release, Is there a way to selectively close down the auto-generated CRUD api on the outward facing graphql api?
    n
    • 2
    • 2
  • s

    sean

    12/23/2017, 12:59 AM
    npm install graphcool -g
    graphcool init
    zsh: command not found: graphcool
    n
    • 2
    • 2
  • s

    sean

    12/23/2017, 12:59 AM
    anyone else having this issue with zsh on OS X? I have the same problem on both macbooks
  • z

    zacharyrs

    12/23/2017, 1:03 AM
    No issue with zsh here
  • z

    zacharyrs

    12/23/2017, 1:04 AM
    How did you install node?
  • s

    sean

    12/23/2017, 1:05 AM
    same issue with bash. I installed Node through NVM
  • s

    sean

    12/23/2017, 1:06 AM
    Installed NVM using Homebrew
  • s

    sean

    12/23/2017, 1:06 AM
    Do I need to add anything to my PATH for graphcool to work? Never had to do that for an npm package
  • z

    zacharyrs

    12/23/2017, 1:10 AM
    Hm, I don’t use NVM anymore, though I have node installed through brew, and use yarn for adding packages. I know with yarn I had to add it to my path. I know nvm doesn’t actually support using brew, which is actually why I swapped to plain node. Perhaps try without nvm?
  • z

    zacharyrs

    12/23/2017, 1:11 AM
    This looks interesting though, https://github.com/lukechilds/zsh-nvm
1...482483484...637Latest