Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for file uploads? #811

Open
elistone opened this issue Jun 18, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@elistone
Copy link

commented Jun 18, 2019

Are there any simple instructions on how to create file upload mutations?

@clemens-tolboom

This comment has been minimized.

Copy link
Contributor

commented Jun 19, 2019

We do have some documentation on d.o. https://www.drupal.org/docs/8/modules/graphql but not about files.

Maybe we should rewrite the Drupal way what I found (javascript) on https://medium.com/@danielbuechele/file-uploads-with-graphql-and-apollo-5502bbf3941e ? But that needs a server side code piece I guess.

@clemens-tolboom

This comment has been minimized.

Copy link
Contributor

commented Jun 19, 2019

Note: the new official documentation is on https://drupal-graphql.gitbook.io/graphql/ which I found through #761 ... not searched there for files.

@joaogarin

This comment has been minimized.

Copy link
Member

commented Jun 24, 2019

Hello, using version 3 I have found that this worked : https://github.com/drupal-graphql/graphql-examples/blob/master/src/Plugin/GraphQL/Mutations/FileUpload.php but not using that currently so can't really testify to if this is entirely a good solution. Should be a good starting point though..

We are currently working on 4x File uploads as well. At the time we integrate it back to the module we should add some docs.

Feel free to add PR's for docs as well, it should always live inside the "doc" folder ;)

@clemens-tolboom

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

@joaogarin thanks for the pointer but his will not land in this drupal-graphql/graphq project but stays an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.