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

    steveb

    11/07/2017, 4:03 PM
    what I'm referring to is one of the following mutations:
    Copy code
    mutation
    {
        addToUserOnBlog(usersUserId: "cj9ohpnok00zw01196umznk21" blogsBlogId: "cj9og4mlg0ubw0105dtukhnm2") {
          # we don't need this but we need to return something
          usersUserId {
            id
          }
        }
      }
    d
    • 2
    • 1
  • d

    daniele

    11/07/2017, 4:44 PM
    I'm so confused...the documentation doesn't help at all... do you have guys the version number and the basic code to setup apollo angular? I tried that https://www.apollographql.com/docs/angular/initialization.html but it doesn't work at all...the compiler complain about definitions type etc
  • d

    danaszova

    11/07/2017, 5:13 PM
    Hi @channel I was just wondering if anyone has set up applepay or braintree within Graph.cool. Any links to resources to streamline integrations such as these would be really appreciated. Thanks!
  • s

    steveb

    11/07/2017, 6:56 PM
    Is there a way to delete just a single table's contents via the graph.cool ui?
  • m

    mike.johnson

    11/07/2017, 7:14 PM
    Does the opensourced self hosted version come with the file manager system? Specifically the image api?
    h
    • 2
    • 6
  • a

    amann

    11/07/2017, 7:38 PM
    What is the purpose of the
    secret
    field on the file node type? Is it something I should be assigning a UUID?
    n
    • 2
    • 1
  • s

    shane.bruggeman

    11/07/2017, 7:45 PM
    Hey, wondering if there's anyone out there that uses ember + apollo
  • s

    shane.bruggeman

    11/07/2017, 7:45 PM
    And if I could ask a few questions about apollo's usage in addons
    n
    • 2
    • 1
  • m

    markmiller21

    11/07/2017, 7:50 PM
    Maybe I am just not searching for the right thing because I think this must exist. Is there a way to filter out specific values from a query? For example if I want to not see a specific value. Per say: firstName=“Mark”. In SQL it would look something like this SELECT * FROM Users WHERE firstName != “Mark”
    j
    • 2
    • 4
  • o

    orr

    11/07/2017, 9:05 PM
    Does anyone know if there's information available about indexing in the underlying Graphcool DBs? What do we do as developers if we need to optimize queries?
  • b

    birkir

    11/07/2017, 9:12 PM
    Algolia integration
    o
    n
    • 3
    • 2
  • k

    kimf

    11/07/2017, 9:30 PM
    anyone managed to upgrade to apollo 2.0 with react native? Getting
    Copy code
    Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: fetch is not found globally and no fetcher passed, to fix pass a fetch for
          your environment like <https://www.npmjs.com/package/node-fetch>.
          For example:
            import fetch from 'node-fetch';
            import { createHttpLink } from 'apollo-link-http';
    
            const link = createHttpLink({ uri: '/graphql', fetch: fetch });
    
           (/var/containers/Bundle/Application/7ECC8570-078D-4115-98CB-3FDCAC270867/Tisdagsgolfen.app/main.jsbundle:344)', reason: 'Unhandled JS Exception: fetch is not found globally and no fetcher passed, ...'
  • c

    cole

    11/07/2017, 9:49 PM
    hey everyone, trying to access the sample endpoints but they aren't serving any data?
    Copy code
    '<https://api.graph.cool/simple/v1/apollo-engine-demo-posts>'
    Copy code
    query {
      allFiles {
        contentType
        createdAt
        id
        name
        secret
      }
    }
    Copy code
    {
      "data": {
        "allFiles": []
      }
    }
    n
    • 2
    • 1
  • a

    amann

    11/07/2017, 10:04 PM
    Is the file endpoint/image endpoint supported in the local docker framework?
    n
    • 2
    • 1
  • f

    falconerd

    11/07/2017, 11:24 PM
    Should we be using both
    graphcool/graphql-cli
    and
    graphcool/framework
    ?
  • f

    falconerd

    11/07/2017, 11:24 PM
    Wait, nevermind
  • f

    falconerd

    11/07/2017, 11:25 PM
    I keep forgetting you guys have forums now
    👍 1
  • m

    Mingzhou ZHUANG

    11/08/2017, 1:44 AM
    Hi, I would like to transform existing MSSQL/Postgres into GraphQL server. I might need to map DB Schema into GraphQL Schema. Thus I can query the MSSQL/Postgres using GraphQL query instead of SQL query? Is graphcool the right tool to achieve this goal? Thanks.
    a
    m
    • 3
    • 9
  • m

    Mingzhou ZHUANG

    11/08/2017, 2:30 AM
    Can I directly access the MySQL created by the Graphcool?
    a
    • 2
    • 8
  • g

    go4cas

    11/08/2017, 8:34 AM
    Hey guys. I'm keen to with the GraphCool Framework a go. I had a look at the sample apps in the repo. I couldn't find an example of using a database (MYSQL, PostgreSQL, etc) as the data source. Can anyone help with a tutorial, or sample code, gist, etc?
  • r

    rick

    11/08/2017, 9:35 AM
    what’s the best approach to do the following, I want to: - have a video view counter (increments when someone watches a video) - save user progress history Now I have the following mutation
    Copy code
    mutation CreateUserMutation($viewedVideoVideoId: ID!, $viewedByUserId: ID!) {
    addToViewedVideos(
    viewedVideoVideoId: $viewedVideoVideoId,
    viewedByUserId: $viewedByUserId
    ) {
    viewedByUser {
    id
    }
    }
    }`
    and the following
    types.grapql
    Copy code
    type User @model {
    # Required system field:
    id: ID! @isUnique # read-only (managed by Graphcool)
    
    # Optional system fields (remove if not needed):
    createdAt: DateTime! # read-only (managed by Graphcool)
    updatedAt: DateTime! # read-only (managed by Graphcool)
    
    facebookUserId: String @isUnique
    email: String # optional, because it's obtained from Facebook API
    name: String # optional, because it's obtained from Facebook API
    
    viewedVideos: [Video!]! @relation(name: "viewedVideos")
    }
    
    
    # Uncomment the model below as well
    
    type Video @model {
    id: ID! @isUnique # read-only (managed by Graphcool)
    createdAt: DateTime! # read-only (managed by Graphcool)
    updatedAt: DateTime! # read-only (managed by Graphcool)
    
    videoId: Int @isUnique
    
    # Every relation also required a back-relation (to determine 1:1, 1:n or n:m)
    viewedByUsers: [User!]! @relation(name: "viewedVideos")
    }
    Implementing the counter is pretty straightforward now, the only thing that I’m not sure about is storing the user progress per video in a smart way, I probably want to store it on the user, but I’m not sure what’s the best way. I want to be able to send the
    videoId
    to retrieve the progress and I’m not sure if that possible if I save the watch history as a JSON like
    {"1231": 0.8}
    . Any advice would be much appreciated!
  • p

    Pieter

    11/08/2017, 9:49 AM
  • p

    Pieter

    11/08/2017, 9:49 AM
    I get that when trying to query the endpoint
    n
    • 2
    • 2
  • f

    frankspin

    11/08/2017, 10:08 AM
    How do I use async/await ?
    n
    j
    • 3
    • 6
  • j

    johhansantana

    11/08/2017, 1:26 PM
    does anyone knows why this happens? I'm trying to test some queries to the graph.cool directly
  • c

    cameronrll

    11/08/2017, 1:31 PM
    Just wondering if something is going on today, had the service drop out on us twice now, and being pretty slow, anyone else have these issues?
    👍 4
  • e

    emils

    11/08/2017, 1:32 PM
    Just tried to login but unsuccessfully
  • m

    meikoudras

    11/08/2017, 1:33 PM
    yep..noticed this as well right now. eu-west region
    👍 1
  • n

    nilan

    11/08/2017, 1:35 PM
    I'm looking into slow responses right now, stay tuned 🙂
    👍 3
    b
    • 2
    • 2
  • m

    Miezan

    11/08/2017, 2:29 PM
    Copy code
    const httpLink = new HttpLink({
      uri: SIMPLE_API_ENDPOINT
    });
    it seems like no matter what i pass to the apollo client gets ignored and i get
    <http://localhost:3000/graphql> 404 (Not Found)
    , anyone else having this issue?
1...415416417...637Latest