Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Team management
Social coding
Documentation
Code hosting
Case Studies
→
Security
→
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
Watch
1
Star
5
Fork
0
eko
/
graphql-go-upload
Code
Issues
0
Pull requests
0
Projects
0
Insights
Permalink
Browse files
Added Travis CI tool
Loading branch information
...
eko
committed
Feb 10, 2019
Unverified
The email in this signature doesn’t match the committer email.
1 parent
401a0f8
commit
dd0e668bcc478071d8790ced88a4ac4e40019ad8
Unified
Split
Showing
2 changed files
with
17 additions
and
1 deletion
.
+14
−0
.travis.yml
+3
−1
README.md
Show comments
View file
14
.travis.yml
@@ -0,0 +1,14 @@
language
:
go
go
:
-
1.7
-
1.8
-
1.9
-
"
1.10
"
-
1.11
install
:
-
go get github.com/stretchr/testify
script
:
go test -v ./...
Show comments
View file
4
README.md
@@ -1,7 +1,9 @@
graphql-go-upload
=================
[](https://travis-ci.org/eko/graphql-go-upload)
[](https://godoc.org/github.com/eko/graphql-go-upload)
[](https://goreportcard.com/badge/github.com/eko/graphql-go-upload)
This library exposes a middleware for the [
GraphQL-Go
](https://github.com/graph-gophers/graphql-go) project in order to expose a new
`Upload`
scalar type and allow you to send
`multipart/form-data`
POST requests containing files and fields data.
@@ -64,4 +66,4 @@ $ curl http://localhost:8000/graphql \
-F map='{ "file": ["variables.file"], "title": ["variables.title"] }' \
-F file=@myfile.txt \
-F title="My content title"
```
```
Toggle all file notes
0 comments on commit
dd0e668
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
Press h to open a hovercard with more details.
0 comments on commit
dd0e668