martin
05/05/2018, 1:28 PMpicosam
05/05/2018, 4:02 PMpost-deploy:
Running graphql get-schema --project prisma !
▸ 'ENOENT': spawn graphql ENOENT
Get in touch if you need help: <https://www.graph.cool/forum>
To get more detailed output, run $ export DEBUG="*"
I’m using yarn workspaces, so my GraphQL API is in a folder called api
that is at the same level as my prisma
folder. The former contains my .graphqlconfig.yml
file and the latter contains my prisma.yml
file.zonofthor
05/05/2018, 7:34 PMveksen
05/05/2018, 7:44 PMmax
05/06/2018, 5:45 AMdamylen
05/06/2018, 7:21 PMdanielrasmuson
05/06/2018, 9:08 PMmysql> show tables;
+---------------------------------------+
| Tables_in_default@default |
+---------------------------------------+
| CheckedOutDataRow |
| DataRow |
| Dataset |
| Function |
| FunctionRun |
| Label |
| LabelReservation |
| LabelingFrontend |
| LabelingFrontendOptions |
| Organization |
| OrganizationInvite |
| Permission |
| Post |
| Project |
| Task |
| Team |
| Type |
| User |
| _AgreementFunction |
| _AssignedFunctionRun |
| _CheckedOutRows |
| _CreatedDataRow |
| _CreatedDatasets |
| _CreatedFrontends |
| _CreatedFunctions |
| _CreatedInvites |
| _CreatedLabels |
| _CreatedProjects |
| _CreatedTasks |
| _CreatedTeams |
| _DataInDataset |
| _DataRowLabels |
| _FunctionRuns |
| _LabelReservations |
| _LabelType |
| _LabelingFrontendCustomizationOptions |
| _OrganizationCheckedOutDataRows |
| _OrganizationDataRows |
| _OrganizationDatasets |
| _OrganizationFunctionRuns |
| _OrganizationInvites |
| _OrganizationLabelReservations |
| _OrganizationLabelingFrontends |
| _OrganizationLabelingFrontendsOptions |
| _OrganizationLabels |
| _OrganizationPermissions |
| _OrganizationProjects |
| _OrganizationTeams |
| _OrganizationTypes |
| _OrganizationUsers |
| _ProjectCheckedOutDataRows |
| _ProjectDatasets |
| _ProjectLabelReservations |
| _ProjectLabelingFrontend |
| _ProjectLabelingFrontendOptions |
| _ProjectLabels |
| _RanFunctions |
| _RelayId |
| _SkippedRows |
| _Tasks |
| _TeamMember |
| _UserCheckedOutDataRows |
| _UserLabelReservations |
| _WhitlistedProjects |
+---------------------------------------+
64 rows in set (0.00 sec)
mysql> select * from _OrganizationUsers limit 1;
+---------------------------+---------------------------+---------------------------+
| id | A | B |
+---------------------------+---------------------------+---------------------------+
| cjgv79dicfh9i0876b5c2w0ts | cjccycyq6hpje0134aktmtshq | cjccyczdih7lb0161ujq9q1ml |
+---------------------------+---------------------------+---------------------------+
1 row in set (0.00 sec)
danielrasmuson
05/06/2018, 9:09 PMJim
05/07/2018, 2:55 AMJim
05/07/2018, 4:28 AMJim
05/07/2018, 5:34 AM$ prisma local start
Booting local development cluster... ⣟
the-simian
05/07/2018, 7:44 AMtype MyDossier {
me: Person
friendsList: [Person!]!
someProperty: String
}
type Person {
id: ID! @unique
name: String
age: Int
}
the errors are that me
and myFriends
must specify a @relation
directive: @relation(name: "MyRelation")
. I read through the unit test file here: https://github.com/graphcool/prisma/blob/762da0cf711abb595a2e743b40d191a54714e535/server/integration-tests/integration-tests-mysql/src/test/scala/com/prisma/integration/SeveralRelationsBetweenSameModelsIntegrationSpec.scala but I'm not immediately seeing why these fields MUST have relationships, because there isnt a necessary back relationthe-simian
05/07/2018, 7:46 AMJim
05/07/2018, 9:12 AMprisma info
I can see Im still on the shared Prisma cluster:
https://us1.prisma.sh/public-plumpchill-275/my-app/dev
Do I need to update the settings in my project to use Zeit’s servers instead? Or is Zeit for the busienss logic and should I still be using the shared Prisma cluster for the GraphQL CRUD API?gregor
05/07/2018, 10:10 AMMarket
and Product
with a many-to-many relationship. I'm trying to find out how many product are in the database for one specific market and the Console gives me a different number than my query. If I find the market in the console and click on the products column, it selects all products with this market or am I missing something critical here?john
05/07/2018, 11:01 AMMike
05/07/2018, 11:20 AMoperationBefore
for example?yolen
05/07/2018, 3:14 PMyolen
05/07/2018, 3:15 PMmutation{
createJens( abesMany:[{navn:"henning"}]){id}
}
yolen
05/07/2018, 3:16 PMyolen
05/07/2018, 3:16 PMyolen
05/07/2018, 3:17 PMmutation{
createJens(abesManys:[{navn:"henning"}]){id}
}
yolen
05/07/2018, 3:18 PMyolen
05/07/2018, 3:19 PM# version: 10
type Abe @model {
id: ID! @isUnique
navn: String!
jensMany: [Jens!]! @relation(name: "JensOnAbe1")
}
type Jens @model {
abesMany: [Abe!]! @relation(name: "JensOnAbe1")
id: ID! @isUnique
}
yolen
05/07/2018, 3:19 PM"Unknown argument 'abesManys' on field 'createJens' of type 'Mutation'. Did you mean 'abesMany', 'abesManyIds' or 'abesIds'? (line 2, column 28):\n createJens( abesManys:[{navn:\"henning\"}]){id}\n
sunrising
05/07/2018, 3:42 PMnoahdavis
05/07/2018, 5:04 PMnilan
05/07/2018, 5:23 PMnilan
05/07/2018, 7:01 PMEmil Johansen
05/07/2018, 7:49 PM