mrboutte
05/11/2018, 1:41 AMJim
05/11/2018, 3:01 AMtype User {
  id: ID! @unique
  picture: String
}type User {
  id: ID!
  picture: String
}
type Query {
  user(id: ID!): User
}async user(parent, args, ctx, info) {
    const { id } = args;
    const result = await ctx.db.query.user({ where: { id } }, info);
    return result;
  },export const USER_QUERY = gql`
  query UserQuery($userId: ID!) {
    user(id: $userId) {
      id
      picture
    }
  }
`;
export default compose(
  graphql(USER_QUERY, {
    name: 'USER_QUERY',
    options: props => {
      return {
        variables: {
          userId: 'cjgylfv6y004h0958tx9d8j9v',
        },
      };
    },
  }),
)(UserPic);Lotafak
05/11/2018, 6:31 AMUy Quoc Ton Tran
05/11/2018, 7:53 AMrein
05/11/2018, 8:30 AMprisma cluster addKhoa Huynh
05/11/2018, 9:27 AMpicosam
05/11/2018, 10:52 AMgraphql get-schema --project prismagraphql prepare✖ Syntax Error: Expected Name, found }pettanko
05/11/2018, 1:15 PMGudmund
05/11/2018, 1:45 PMVakrim
05/11/2018, 2:02 PMprisma-bindingexistswhereexists.Project({where: {id }})exists.Project({id})wesbos
05/11/2018, 3:01 PMprisma deploy.envwesbos
05/11/2018, 3:01 PMrequire('dotenv').config({ path: 'variables.env' });wesbos
05/11/2018, 3:02 PM.envjangerhofer
05/11/2018, 3:18 PMPlacetype Place {
  id: ID! @unique
  city : String!
  ...
}Query : {
 cities : [String]
}group bywesbos
05/11/2018, 3:35 PMendpoint: <https://us1.prisma.sh/wesbos/sick-fits/${env:PRISMA_STAGE}>
datamodel: datamodel.graphql
secret: ${env:PRISMA_SECRET}endpointsteveb
05/11/2018, 4:04 PMpettanko
05/11/2018, 4:18 PMawoyotoyin
05/11/2018, 5:15 PMjeffbski
05/11/2018, 5:29 PMjeffbski
05/11/2018, 5:30 PMjeffbski
05/11/2018, 5:38 PMmehdyouras
05/11/2018, 6:03 PMvirtualirfan
05/11/2018, 6:13 PMvirtualirfan
05/11/2018, 7:31 PMPieter
05/11/2018, 7:32 PM"errors": [
    {
      "message": "Cannot read property 'args' of undefined",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],Pieter
05/11/2018, 7:32 PMPieter
05/11/2018, 7:32 PMPieter
05/11/2018, 7:33 PMdanielrasmuson
05/11/2018, 7:46 PMStephen Jensen
05/11/2018, 7:57 PMcontext