Keith Gunn
03/20/2019, 3:43 PMEcker
03/20/2019, 8:24 PMgraphql-nexus
and nexus-prisma
"production" ready? Anybody here using it in production?chan1di
03/20/2019, 9:19 PMfaure
03/21/2019, 12:03 AMfaure
03/21/2019, 12:04 AMtype Company {
name: String
}
type Employee {
company: Company
}
faure
03/21/2019, 12:05 AMfaure
03/21/2019, 12:24 AMJeuffre Alexander Brena Pulido
03/21/2019, 12:38 AMconst query = `
query getUser($filters: UserFilter) {
allUsers(
filter: $filters
){
id
email
}
}
`
const variables = {
OR: [
{ email: userEmail },
{ id: userId }
]
}
graphcool.api('simple/v1').request<{ User }>(query, variables)
goonit
03/21/2019, 1:12 AMprisma generate
?goonit
03/21/2019, 1:12 AMgoonit
03/21/2019, 1:12 AMendpoint: <http://localhost:4466>
datamodel: datamodel.prisma
generate:
- generator: javascript-client
output: ./generated/prisma-client/
- generator: graphql-schema
output: ./generated/prisma-client/
goonit
03/21/2019, 1:13 AMTaylor
03/21/2019, 2:20 AMBiel Simon
03/21/2019, 4:51 AMBiel Simon
03/21/2019, 4:52 AMBiel Simon
03/21/2019, 4:53 AMBiel Simon
03/21/2019, 4:54 AMBiel Simon
03/21/2019, 4:54 AMBiel Simon
03/21/2019, 4:58 AMBiel Simon
03/21/2019, 5:01 AMhenrique
03/21/2019, 10:33 AMhenrique
03/21/2019, 10:34 AMantonbramsen
03/21/2019, 11:40 AMAddress
in my data model with fields streetName
and houseNumber
I want to only expose streetName when a non-authenticated user tries to query a resolver that returns my the Address type and all fields when the user is authenticated.
How would I do that using nexus-prisma?Guilherme
03/21/2019, 2:22 PM"Argument 'where' expected type 'RoomWhereInput' but got: {OR: [{city_contains: \"Paris\"}, {state_contains: \"Paris\"}]}. Reason: 'OR' Field 'OR' is not defined in the input type 'RoomWhereInput'
Gheorghe Avram
03/21/2019, 4:11 PMgraphcool init graphtest
i then did graphcool local up
and cd graphtest
and until here everything worked great
i then did graphcool deploy
and selected local
after this it showed local and it never stopped or showed any aditional information, i tried to use the docs to orient me, maybe i did something wrong, but nothing was helpful
if i do docker ps
everything showed up and it seemed to be runningGheorghe Avram
03/21/2019, 4:13 PMGheorghe Avram
03/21/2019, 4:14 PMRobert Nicely
03/21/2019, 5:00 PMRobert Nicely
03/21/2019, 5:05 PMKianoosh
03/21/2019, 7:10 PM