# Adding Schema in Slash GraphQL

**URL:** <https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512>\
**Category:** Dgraph Cloud\
**Tags:** kind:question\
**Created:** [September 22, 2020, 9:10am UTC](https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512 "2020-09-22T09:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiradikusuma](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wiradikusuma/32/1847_2.png) [@wiradikusuma](https://discuss.dgraph.io/u/wiradikusuma)\
**Post date:** [September 22, 2020, 9:10am UTC](https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512/1 "2020-09-22T09:10:27Z")

</div>

During Graph in Space streaming, I was told by several members of Dgraph that Slash also accepts GraphQL± syntax, but when I try to paste my “init DB” script, it doesn’t work:

```
type Asset {
	a_acquired
	<~a_reminders>
	...
	a_created_at
}

type Money {
	o_amount
	o_currency
}

...

<a_acquired>: datetime @index(day) .
<a_reminders>: [uid] @reverse .
...
<a_created_at>: datetime @index(day) .

<o_amount>: int @index(int) .
<o_currency>: string @index(exact) .

...

```

How do I make it happen without changing my schema? It’s always been working for the on-prem version (Dgraph 1.x and 20.x).

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [September 22, 2020, 9:42am UTC](https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512/2 "2020-09-22T09:42:12Z")

</div>

Hey @wiradikusuma, welcome back.

So, you can use GraphQL± (now known as DQL) using your traditional connection methods to Slash (i.e. using gRPC, and `dgo`/`pydgraph` etc)

Another method of using DQL is to embed DQL in graphql using the `@remote` directives - see also [the docs on custom DQL in GraphQL](https://dgraph.io/docs/graphql/custom/graphqlpm/).

---

<div class="post-metadata">

**Author:** ![gja](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/gja/32/2654_2.png) [@gja](https://discuss.dgraph.io/u/gja)\
**Post date:** [September 22, 2020, 6:30pm UTC](https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512/3 "2020-09-22T18:30:16Z")

</div>

Other than this, you can also use ratel at [play.dgraph.io](http://play.dgraph.io). Just create a API token on the Slash Dashboard and enter it into ratel

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [October 7, 2020, 5:54am UTC](https://discuss.dgraph.io/t/adding-schema-in-slash-graphql/10512/4 "2020-10-07T05:54:57Z")

</div>

2 posts were split to a new topic: [Connecting to Slash GraphQL using Dgraph4j](https://discuss.dgraph.io/t/connecting-to-slash-graphql-using-dgraph4j/10813)
