m.gu
06/02/2018, 11:49 PMDukuo
06/03/2018, 2:04 AMgraphql codegen
.. It says is generating the code to a file in src\generated\prisma.ts
, but is not actually doing it.. Is there any common cause of this ?Dukuo
06/03/2018, 3:33 AMgraphql prepare
but the generated files do not go with Typescript validation, Linux works just fine)Vdrizzle
06/03/2018, 4:14 AMAl
06/03/2018, 2:46 PMgaelgriffon
06/03/2018, 2:57 PMJscott388
06/03/2018, 6:18 PMryannealmes
06/03/2018, 7:39 PMmianrafay
06/03/2018, 7:43 PMcodebeast
06/03/2018, 11:01 PMError: Error writing result to store for query:
query AllLinksQuery($first: Int, $skip: Int, $orderBy: LinkOrderByInput) {
feed(first: $first, skip: $skip, orderBy: $orderBy) {
count
links {
id
url
description
createdAt
postedBy {
id
name
__typename
}
votes {
id
user {
id
__typename
}
__typename
}
__typename
}
__typename
}
}
*Cannot read property '__typename' of undefined*
Seems to be coming from this line:
store.writeQuery({
query: ALL_LINKS_QUERY,
variables: {
first: 5,
skip: 0,
orderBy: 'createdAt_DESC'
},
data
})
Gomah
06/03/2018, 11:27 PMsivajag
06/04/2018, 4:34 AMhalborg
06/04/2018, 7:13 AMsiyfion
06/04/2018, 8:27 AMJames Bellamy
06/04/2018, 9:01 AMcodebeast
06/04/2018, 10:56 AMupdateQuery: (previous, { subscriptionData }) => {
console.log(subscriptionData)
console.log(previous, subscriptionData)
const newAllLinks = [
subscriptionData.data.newLink.node,
...previous.feed.links
]
const result = {
...previous,
feed: {
links: newAllLinks
}
}
return result
}
I keep getting:
errorHandling.js?ace3:7 TypeError: Cannot read property 'node' of null
rein
06/04/2018, 1:40 PMhvdklauw
06/04/2018, 1:47 PMhvdklauw
06/04/2018, 1:48 PMBen Wheeler
06/04/2018, 2:27 PMdsoraluz
06/04/2018, 2:40 PMUnhandled GraphQL subscription error TypeError: this.subscriptionClient.request is not a function
The prop that is being used to make the subscription call has been wrapped in the graphql container:
this.subscribeToAgents(fetchInitialData);
.
.
.
subscribeToAgents = fetchInitialData => {
fetchInitialData.subscribeToMore({
document: gql`
subscription{
Agent{
mutation
node {
id
name
status
}
}
}
`;,
updateQuery: (previous, { subscriptionData } ) => {
const { updateAgent } = this.props;
updateAgent(subscriptionData.Agent.node);
},
});
};
.
.
.
graphql(FetchInitialData, {
name: 'fetchInitialData',
options: ({ contentStore: { start, end } }) => ({ variables: { start, end } }),
}),
Note: the Apollo Client has been created to use a hybrid link that uses the split function just like the docs lay out and http requests are completed fine when made.blackxored
06/04/2018, 4:17 PMvirtualirfan
06/04/2018, 5:41 PMsajmil
06/04/2018, 5:57 PMhueezer
06/04/2018, 9:00 PMERROR: GraphQL Error (Code: 405)
{
"error": "HTTP method not allowed, supported methods: GET",
"status": 405
}
hamdi
06/04/2018, 11:12 PMchameleon
06/05/2018, 12:08 AMchameleon
06/05/2018, 12:09 AMSam Jackson
06/05/2018, 12:26 AMprisma deploy
but my generated prisma.graphql
file doesn't seem to be updating. any thoughts on why that might be?Sam Jackson
06/05/2018, 1:26 AMAND
in the where
clause of an upsert operation?