Ben
07/07/2018, 2:40 PMKyleG
07/07/2018, 9:53 PMOba-One
07/07/2018, 10:54 PMvuegraphql
07/08/2018, 1:10 AMvuegraphql
07/08/2018, 1:10 AMvuegraphql
07/08/2018, 1:12 AMvuegraphql
07/08/2018, 1:12 AMcodepunkt
07/08/2018, 8:19 AMexport interface talksConnectionQuery_talks_edges_node {
__typename: "Talk";
id: string;
youtubeId: string;
title: string;
createdAt: DateTime;
}
and DateTime
is not defined anywhere.codepunkt
07/08/2018, 8:35 AM--passthroughCustomScalars
option on the apollo-codegen generate
turns DateTime
into any
. That's a first step! šGorodov Maksim
07/08/2018, 9:16 AM// datamodel.graphql
type File {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
filename: String!
mimetype: String!
encoding: String!
url: String! @unique
}
// schema.graphql
uploadFile(file: Upload!): File!
// mutation.js
const uploadFile = async(_, args, context, info) => {
console.log(args.file) // always {}
return await processUpload(await args.file, context);
};
Frontend:
// mutation.js
export const UPLOAD_FILE = gql`
mutation uploadFile($file: Upload!) {
uploadFile(file: $file) {
id
}
}
`;
// it is onChange handler for input[type='file']
const file = e.currentTarget.files[0];
console.log(file); // checkout this screenshot to see what is in 'file' - <http://prntscr.com/k3vso2>
if (file) {
uploadFile({
variables: {
file: file,
},
});
}
Also, maybe it is because my client on frontend configured not correctly, here is a gist of it's configuration - https://gist.github.com/SilencerWeb/67237dd3f1300149bd5e743614e96c94Gorodov Maksim
07/08/2018, 9:27 AMcreateUploadLink
Gorodov Maksim
07/08/2018, 10:27 AMArnab
07/08/2018, 10:42 AMpicosam
07/08/2018, 11:12 AMMiloÅ” ÄakoviÄ
07/08/2018, 12:18 PMmutation {
createPerson(
data: {
lastName: "Last"
firstName: "First"
phones: {
create: [
{ phoneNumber: "phone1" },
{ phoneNumber: "phone2" }
]
}
}
) {id}
}
Al
07/08/2018, 1:42 PMtimwis
07/08/2018, 5:42 PMgeirman
07/08/2018, 5:49 PM@defaultValue
directive like thisā¦
type Event {
id: ID! @unique
title: String!
slug: String! @unique @defaultValue(value: titleToSlug())
}
theom
07/08/2018, 7:10 PMSam Jackson
07/08/2018, 10:43 PMgraphql-boilerplates
with Kubernetes?Ben
07/08/2018, 11:27 PMalexey.rodionov
07/09/2018, 7:30 AMrwieruch
07/09/2018, 9:09 AMNick
07/09/2018, 10:42 AMNick
07/09/2018, 10:42 AMNick
07/09/2018, 10:43 AMNick
07/09/2018, 10:44 AMMoritz
07/09/2018, 10:45 AMGarrett Thompson
07/09/2018, 1:35 PMprismagraphql/prisma
Docker image to include my datamodel? So rather than spin up a Docker container, then prisma deploy
, I want to specify a container like this so it generates the schema at start:
FROM prismagraphql/prisma:1.11
COPY ./datamodel.graphql /some-dir-in-container
terion
07/09/2018, 2:22 PMgraphql-bindings
and yoga-server
combined. It drives me nuts for 4 days. Can anyone take a look at this please?
https://github.com/graphql-binding/graphql-binding/issues/129