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

Upload file from backend using keystone.executeQuery #2399

Closed
tomasgvivo opened this issue Feb 19, 2020 · 3 comments
Closed

Upload file from backend using keystone.executeQuery #2399

tomasgvivo opened this issue Feb 19, 2020 · 3 comments

Comments

@tomasgvivo
Copy link

I'm trying to make fixtures for my keystone application's stage environment and I need to create file uploads from the backend.

I can not find any example on how to "upload" a file using keystone.executeQuery().
Is it even possible?

@gautamsi
Copy link
Member

see example here -
https://github.com/keystonejs-contrib/keystonejs-contrib/blob/a27031ddc1c0b101a93bac3cba861774c9083abd/examples/blog-view/routes/views/new-post.js#L32
this is how you would populate the input field for graphql query.

@stale
Copy link

stale bot commented Jun 18, 2020

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

@stale stale bot added the needs-review label Jun 18, 2020
@bladey
Copy link
Contributor

bladey commented Apr 8, 2021

Keystone 5 has officially moved into active maintenance mode as we push towards the next major new version Keystone Next, you can find out more information about this transition here.

In an effort to sustain the project going forward, we're cleaning up and closing old issues such as this one. If you feel this issue is still relevant for Keystone Next, please let us know.

@bladey bladey closed this as completed Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants