Skip to content

Commit cd82aba

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents e4b8428 + 873554e commit cd82aba

File tree

5 files changed

+66
-8
lines changed

5 files changed

+66
-8
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [codeneomatrix]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
<p align="center"><img src="diana-banner.png" width="25%" ></p>
1+
<p align="center"><img src="diana_logo.png" width="25%" ></p>
2+
<h1 align="center">Diana.jl</h1>
23
<p align="center">
4+
35
<strong>A Julia GraphQL client/server implementation.</strong>
46
<br><br>
5-
<a href="https://travis-ci.org/codeneomatrix/Diana.jl"><img src="https://travis-ci.org/codeneomatrix/Diana.jl.svg?branch=master"></a>
6-
<a href="https://codecov.io/gh/codeneomatrix/Diana.jl">
7-
<img src="https://codecov.io/gh/codeneomatrix/Diana.jl/branch/master/graph/badge.svg" />
7+
<a href="https://travis-ci.org/neomatrixcode/Diana.jl"><img src="https://travis-ci.org/neomatrixcode/Diana.jl.svg?branch=master"></a>
8+
<a href="https://codecov.io/gh/neomatrixcode/Diana.jl">
9+
<img src="https://codecov.io/gh/neomatrixcode/Diana.jl/branch/master/graph/badge.svg" />
810
</a>
9-
<a href="https://codeneomatrix.github.io/Diana.jl/stable"><img src="https://img.shields.io/badge/docs-stable-blue.svg"></a>
10-
<a href="https://codeneomatrix.github.io/Diana.jl/dev"><img src="https://img.shields.io/badge/docs-dev-blue.svg"></a>
11+
<a href="https://neomatrixcode.github.io/Diana.jl/stable"><img src="https://img.shields.io/badge/docs-stable-blue.svg"></a>
12+
<a href="https://neomatrixcode.github.io/Diana.jl/dev"><img src="https://img.shields.io/badge/docs-dev-blue.svg"></a>
1113
<a href="https://www.repostatus.org/#active"><img src="https://www.repostatus.org/badges/latest/active.svg"></a>
12-
<a href="https://raw.githubusercontent.com/codeneomatrix/Diana.jl/master/LICENSE.md"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
14+
<a href="https://raw.githubusercontent.com/neomatrixcode/Diana.jl/master/LICENSE.md"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
1315
</p>
1416

1517
#### Contributions welcomed!
@@ -142,4 +144,4 @@ result = my_schema.execute(query)
142144
## Documentation
143145

144146
Documentation and links to additional resources are available at
145-
https://codeneomatrix.github.io/Diana.jl/v0.2/
147+
https://neomatrixcode.github.io/Diana.jl/v0.2/

client.png

185 KB
Loading

server.png

221 KB
Loading

test/pendig_programs_to_test

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
using Diana
2+
3+
schema = """
4+
input NestedInput {
5+
aThing: String
6+
bThing: String
7+
}
8+
9+
input BaseInput {
10+
nestedThing: NestedInput
11+
otherThing: String
12+
}
13+
14+
type Query {
15+
hello: String
16+
}
17+
18+
type Mutation {
19+
failingFunction(input: BaseInput ): String
20+
}
21+
22+
schema {
23+
query: Query
24+
mutation: Mutation
25+
}"""
26+
27+
28+
resolvers = Dict(
29+
"Query" => Dict(
30+
"hello" => (root, args, ctx, info) -> (return "world")
31+
),
32+
"Mutation" => Dict(
33+
"failingFunction" => (root, args, ctx, info) -> begin
34+
println(args)
35+
# ARGs will not properly parse and drop into this function
36+
end
37+
)
38+
)
39+
40+
my_schema = Schema(schema, resolvers)
41+
42+
query= "mutation { failingFunction(input:{nestedThing:{aThing:\"test\",bThing:\"test\"},otherThing:\"test\"}) }"
43+
44+
result = my_schema.execute(query)

0 commit comments

Comments
 (0)