Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2c810e9
fix(docs): update version (#331)
skrdgraph Oct 20, 2022
4ba1c95
[Docs] Access Control Lists : add the command and random keys (#333)
Rajakavitha1 Oct 27, 2022
4096ae4
[Docs] Encryption at Rest: added a note for macOS (#334)
Rajakavitha1 Oct 27, 2022
d01e2ed
docs(release): Dgraph v22.0.0 release (#335)
MichelDiz Oct 31, 2022
b05f66c
Cherry pick/v22.0/glossary (#364)
rderbier Dec 14, 2022
004bba5
Cherry pick/v22.0/glossary update (#387)
rderbier Jan 13, 2023
5e9f635
Merge branch 'release/v22.0'
rderbier Jan 17, 2023
3fa1a02
Revamp(install) : merge to v22.0 (#409)
rderbier Jan 18, 2023
ce08046
change build script for branches (#425)
rderbier Jan 27, 2023
84c8c49
Algolia/v22.0 (#427)
rderbier Jan 30, 2023
3804b5c
Algolia/v22.0 (#429)
rderbier Jan 31, 2023
b91145a
Algolia/v22.0 (#430)
rderbier Jan 31, 2023
fae5fb3
Algolia/v22.0 (#431)
rderbier Jan 31, 2023
43b6bbc
remove graphql overview and references (#433)
rderbier Feb 1, 2023
6cda032
remove graphql overview and references (#434)
rderbier Feb 1, 2023
b95fd77
add v22.0.2 (#435)
rderbier Feb 1, 2023
97665b4
Revamp/import data (#437)
rderbier Feb 1, 2023
d43480f
Dgraph overview diagram (#438)
rderbier Feb 1, 2023
034c80b
upgrade hugo version to 0.91 (#443)
rderbier Feb 2, 2023
568aaa9
Docs(Lambda): Fix incorrect environment variable example (#449)
matthewmcneely Feb 10, 2023
15c3c6f
move type-system (#452)
rderbier Feb 13, 2023
68de9f6
[REVAMP]: move predicate types (ex schema) to DQL section (#454)
rderbier Feb 14, 2023
5a3f415
Revamp/howto drop data (#451)
rderbier Feb 14, 2023
a9ee580
Revamp/mutation syntax (#459)
rderbier Feb 14, 2023
399de45
revamp doc home (#463)
rderbier Feb 14, 2023
84068c6
Delete .hugo_build.lock
rderbier Feb 14, 2023
e992f39
ignore lock files
rderbier Feb 14, 2023
86d1133
graphql quickstart (#465)
rderbier Feb 15, 2023
4717578
avoid conflicts with cloud doc urls
rderbier Feb 15, 2023
f13a349
re-organize graphql section
rderbier Feb 15, 2023
6d5d05a
Merge branch 'main' into revamp/graphql-section
rderbier Feb 15, 2023
238ccb2
correct reference
rderbier Feb 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions content/dql-syntax/dql-rdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The supported [RDF datatypes](https://www.w3.org/TR/rdf11-concepts/#section-Data
| <http://www.w3.org/2001/XMLSchema#float> | `float` |


<<<<<<<< HEAD:content/dql-syntax/dql-rdf.md



### Facets
Expand Down Expand Up @@ -125,6 +125,3 @@ Result:
}
}
```
========
See the section on [RDF schema types]({{< relref "predicate-types.md#rdf-types" >}}) to understand how RDF types affect mutations and storage.
>>>>>>>> main:content/mutations/language-rdf-types.md
4 changes: 2 additions & 2 deletions content/graphql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = "Generate a GraphQL API and a graph backend from a single GraphQL
</div>
<div class="item">
<div class="icon"><i class="lni lni-layout" aria-hidden="true"></i></div>
<a href="{{< relref "schema/schema-overview.md">}}">
<a href="{{< relref "schema">}}">
<h2>Schema</h2>
<p>
All the things that you can put in your input GraphQL schema
Expand All @@ -33,7 +33,7 @@ description = "Generate a GraphQL API and a graph backend from a single GraphQL
</div>
<div class="item">
<div class="icon"><i class="lni lni-cloud-network" aria-hidden="true"></i></div>
<a href="{{< relref "api/api-overview.md">}}">
<a href="{{< relref "api">}}">
<h2>API</h2>
<p>
How to use the GraphQL API
Expand Down
22 changes: 19 additions & 3 deletions content/graphql/api/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
+++
title = "API"
title = "Client API"
[menu.main]
identifier = "api"
parent = "graphql"
weight = 5
+++
weight = 8
+++

How to use the GraphQL API.

Dgraph serves [spec-compliant
GraphQL](https://graphql.github.io/graphql-spec/June2018/) over HTTP to two endpoints: `/graphql` and `/admin`.


In Dgraph Cloud `/graphql` and `/admin` are served from the domain of your backend, which will be something like `https://YOUR-SUBDOMAIN.REGION.aws.cloud.dgraph.io`. If you are running a self-hosted Dgraph instance that will be at the alpha port and url (which defaults to `http://localhost:8080` if you aren't changing any settings).

In each case, both GET and POST requests are served.

- `/graphql` is where you'll find the GraphQL API for the types you've added. That is the single GraphQL entry point for your apps to Dgraph.

- `/admin` is where you'll find an admin API for administering your GraphQL instance. That's where you can update your GraphQL schema, perform health checks of your backend, and more.

This section covers the API served at `/graphql`. See [Admin](/graphql/admin) to learn more about the admin API.
24 changes: 0 additions & 24 deletions content/graphql/api/api-overview.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/graphql/authorization/_index.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/graphql/custom/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Custom Resolvers"
weight = 9
weight = 6
[menu.main]
identifier = "custom"
parent = "graphql"
Expand Down
2 changes: 1 addition & 1 deletion content/graphql/federation/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Apollo Federation"
description = "Dgraph now supports Apollo federation so that you can create a gateway GraphQL service that includes the Dgraph GraphQL API and other GraphQL services."
weight = 14
weight = 12
[menu.main]
name = "Apollo Federation"
identifier = "federation"
Expand Down
79 changes: 0 additions & 79 deletions content/graphql/how-dgraph-graphql-works/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/graphql/lambda/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Lambda Resolvers"
weight = 9
weight = 7
[menu.main]
identifier = "lambda"
parent = "graphql"
Expand Down
2 changes: 1 addition & 1 deletion content/graphql/mutations/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Mutations"
weight = 8
weight = 4
[menu.main]
identifier = "graphql-mutations"
parent = "graphql"
Expand Down
2 changes: 1 addition & 1 deletion content/graphql/queries/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Queries"
weight = 7
weight = 3
[menu.main]
identifier = "graphql-queries"
parent = "graphql"
Expand Down
6 changes: 4 additions & 2 deletions content/graphql/quick-start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ weight = 2
parent = "graphql"
+++

Go from an empty Dgraph database to a running GraphQL API in just one step!
Just define the schema of your graph and how you’d like to search it; Dgraph does the rest.
You might be familiar with GraphQL types, fields and resolvers. Perhaps you've written an app that adds GraphQL over a REST endpoint or maybe over a relational database. If so, you know how GraphQL sits over those sources and issues many queries to translate the REST/relational data into something that looks like a graph.

There's none of that with Dgraph : you can generate a running GraphQL API with the associated graph backend just by dpeloying the GraphQL schema of your API; Dgraph does the rest.


## Prerequisite : Run Dgraph

Expand Down
12 changes: 10 additions & 2 deletions content/graphql/schema/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ title = "Schema"
[menu.main]
identifier = "schema"
parent = "graphql"
weight = 6
+++
weight = 2
+++

This section describes all the things you can put in your input GraphQL schema, and what gets generated from that.

The process for serving GraphQL with Dgraph is to add a set of GraphQL type definitions using the `/admin` endpoint. Dgraph takes those definitions, generates queries and mutations, and serves the generated GraphQL schema.

The input schema may contain interfaces, types and enums that follow the usual GraphQL syntax and validation rules.

If you want to make your schema editing experience nicer, you should use an editor that does syntax highlighting for GraphQL. With that, you may also want to include the definitions [here](/graphql/schema/dgraph-schema) as an import.
Loading