Last active
January 17, 2018 19:59
-
-
Save maticzav/91aa918bf33711af0e56d00fbb855dd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/files.ts | |
const data = { | |
name, | |
size, | |
secret, | |
contentType, | |
url | |
} | |
// Creates a File and retrieves the id of created object. (` { id } `). | |
const { id } = await prisma.mutation.createFile({ data }, ` { id } `) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment