Skip to content

Commit 012831b

Browse files
committed
YarQL!!
1 parent 65ccf76 commit 012831b

29 files changed

Lines changed: 47 additions & 44 deletions

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Graphql library for GoLang
1+
![Banner](https://github.com/mjarkk/yarql/blob/main/banner.png?raw=true)
22

3-
[![Go Reference](https://pkg.go.dev/badge/github.com/mjarkk/go-graphql.svg)](https://pkg.go.dev/github.com/mjarkk/go-graphql) [![Go Report Card](https://goreportcard.com/badge/github.com/mjarkk/go-graphql)](https://goreportcard.com/report/github.com/mjarkk/go-graphql) [![Coverage Status](https://coveralls.io/repos/github/mjarkk/go-graphql/badge.svg?branch=main)](https://coveralls.io/github/mjarkk/go-graphql?branch=main)
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/mjarkk/yarql.svg)](https://pkg.go.dev/github.com/mjarkk/yarql) [![Go Report Card](https://goreportcard.com/badge/github.com/mjarkk/yarql)](https://goreportcard.com/report/github.com/mjarkk/yarql) [![Coverage Status](https://coveralls.io/repos/github/mjarkk/go-graphql/badge.svg?branch=main)](https://coveralls.io/github/mjarkk/go-graphql?branch=main)
4+
5+
# YarQL, A Graphql library for GoLang
46

57
Just a different approach to making graphql servers in Go
68

@@ -11,20 +13,21 @@ Just a different approach to making graphql servers in Go
1113
- Build on top of the [graphql spec 2021](https://spec.graphql.org/October2021/)
1214
- No code generators
1315
- [Only 1 dependency](go.mod)
14-
- Easy to implement in many web servers, see the [gin](https://github.com/mjarkk/go-graphql/blob/main/examples/gin/main.go) and [fiber](https://github.com/mjarkk/go-graphql/blob/main/examples/fiber/main.go) examples
16+
- Easy to implement in many web servers, see the [gin](https://github.com/mjarkk/yarql/blob/main/examples/gin/main.go) and [fiber](https://github.com/mjarkk/yarql/blob/main/examples/fiber/main.go) examples
1517
- [File upload support](#file-upload)
1618
- Supports [Apollo tracing](https://github.com/apollographql/apollo-tracing)
19+
- [Fast](#Performance)
1720

1821
## Example
1922

20-
See the [/examples](https://github.com/mjarkk/go-graphql/tree/main/examples) folder for more examples
23+
See the [/examples](https://github.com/mjarkk/yarql/tree/main/examples) folder for more examples
2124

2225
```go
2326
package main
2427

2528
import (
2629
"log"
27-
"github.com/mjarkk/go-graphql"
30+
"github.com/mjarkk/yarql"
2831
)
2932

3033
type Post struct {
@@ -365,7 +368,7 @@ In your request add a form file with the field name: `form_file_field_name`
365368

366369
## Testing
367370

368-
There is a [pkg.go.dev mjarkk/go-graphql/tester](https://pkg.go.dev/github.com/mjarkk/go-graphql/tester) package available with handy tools for testing the schema
371+
There is a [pkg.go.dev mjarkk/go-graphql/tester](https://pkg.go.dev/github.com/mjarkk/yarql/tester) package available with handy tools for testing the schema
369372

370373
## Performance
371374

assert/assert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"unicode"
1515
"unicode/utf8"
1616

17-
"github.com/mjarkk/go-graphql/assert/difflib"
17+
"github.com/mjarkk/yarql/assert/difflib"
1818
)
1919

2020
// TestingT is an interface wrapper around *testing.T

banner.png

118 KB
Loading

bytecode/bytecode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"unicode/utf8"
1010
"unsafe"
1111

12-
"github.com/mjarkk/go-graphql/bytecode/cache"
12+
"github.com/mjarkk/yarql/bytecode/cache"
1313
)
1414

1515
// ParserCtx has all the information needed to parse a query

bytecode/bytecode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"sync"
88
"testing"
99

10-
a "github.com/mjarkk/go-graphql/assert"
10+
a "github.com/mjarkk/yarql/assert"
1111
)
1212

1313
func parseQuery(query string) ([]byte, []error) {

bytecode/cache/bytecode_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cache
33
import (
44
"bytes"
55

6-
"github.com/mjarkk/go-graphql/helpers"
6+
"github.com/mjarkk/yarql/helpers"
77
)
88

99
// BytecodeCache contains the bytecode cache

copy_schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package graphql
33
import (
44
"reflect"
55

6-
"github.com/mjarkk/go-graphql/bytecode"
7-
"github.com/mjarkk/go-graphql/helpers"
6+
"github.com/mjarkk/yarql/bytecode"
7+
"github.com/mjarkk/yarql/helpers"
88
"github.com/valyala/fastjson"
99
)
1010

enums.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"reflect"
77
"sort"
88

9-
h "github.com/mjarkk/go-graphql/helpers"
9+
h "github.com/mjarkk/yarql/helpers"
1010
)
1111

1212
type enum struct {

enums_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package graphql
33
import (
44
"testing"
55

6-
a "github.com/mjarkk/go-graphql/assert"
6+
a "github.com/mjarkk/yarql/assert"
77
)
88

99
func TestRegisterEnum(t *testing.T) {

examples/fiber/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
module github.com/mjarkk/go-graphql-fiber-example
1+
module github.com/mjarkk/yarql-fiber-example
22

33
go 1.16
44

55
require (
66
github.com/gofiber/fiber/v2 v2.11.0
7-
github.com/mjarkk/go-graphql v0.0.0-20210604095247-1a621d53c91c
7+
github.com/mjarkk/yarql v0.0.0-20210604095247-1a621d53c91c
88
)
99

10-
replace github.com/mjarkk/go-graphql => ../../
10+
replace github.com/mjarkk/yarql => ../../

0 commit comments

Comments
 (0)