# \#area:schema

**URL:** https://discuss.dgraph.io/tag/area-schema/164.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [Is it possible to have an "array division" in an @auth rule?](https://discuss.dgraph.io/t/is-it-possible-to-have-an-array-division-in-an-auth-rule/18437)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 7\
**Last updated:** [March 30, 2023, 8:15pm UTC](https://discuss.dgraph.io/t/is-it-possible-to-have-an-array-division-in-an-auth-rule/18437 "2023-03-30T20:15:34Z")

</div>

Consider an array in the user claim { ... arr: \["one", "two", "three"\], ... } and a schema type Check { id: ID! test: \[String!\]! } where Check.test can only contain elements from arr but any number and any …

---

## [Add aliases at the schema level (In type)](https://discuss.dgraph.io/t/add-aliases-at-the-schema-level-in-type/8489)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 2\
**Last updated:** [November 16, 2022, 8:45pm UTC](https://discuss.dgraph.io/t/add-aliases-at-the-schema-level-in-type/8489 "2022-11-16T20:45:04Z")

</div>

Moved from GitHub dgraph/4898 Posted by MichelDiz: Experience Report reference: Support JSON-LD in Dgraph - Dev - Discuss Dgraph What you wanted to do Add aliases at the schema level. To preserve my dataset. Why that…

---

## [Schema change not allowed from scalar to uid or vice versa while there is data for pred](https://discuss.dgraph.io/t/schema-change-not-allowed-from-scalar-to-uid-or-vice-versa-while-there-is-data-for-pred/8898)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 9\
**Last updated:** [January 4, 2022, 1:49pm UTC](https://discuss.dgraph.io/t/schema-change-not-allowed-from-scalar-to-uid-or-vice-versa-while-there-is-data-for-pred/8898 "2022-01-04T13:49:30Z")

</div>

Dgraph Version: v2.0.0-rc1-514-ga69b22f53 Original Schema: type Message { id: ID! to: String! from: String! message: String! } New Schema: type Message { id: ID! to: Contact! from: Contact! message: S…

---

## [Delete graph](https://discuss.dgraph.io/t/delete-graph/14664)

<div class="topic-metadata">

**Author:** [@ricecold](https://discuss.dgraph.io/u/ricecold)\
**Replies:** 9\
**Last updated:** [June 21, 2021, 10:59am UTC](https://discuss.dgraph.io/t/delete-graph/14664 "2021-06-21T10:59:39Z")

</div>

It takes about 5 seconds for deleting one predicates,so I have to take lots of time while delete a type with several predicates,how can i delete a type with predicates faster?

---

## [How to design a data-version-controll DQL Schema](https://discuss.dgraph.io/t/how-to-design-a-data-version-controll-dql-schema/13099)

<div class="topic-metadata">

**Author:** [@buch-tgw](https://discuss.dgraph.io/u/buch-tgw)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 5:17pm UTC](https://discuss.dgraph.io/t/how-to-design-a-data-version-controll-dql-schema/13099 "2021-03-08T17:17:04Z")

</div>

We are wondering how to design a DQL-Data-Schema, which is able to store versioned data. We must be able to each write a Query… which only returns the just the current values which returns the values of a specific Ver…

---

## [How to Improve Unique Constraints in Schema?](https://discuss.dgraph.io/t/how-to-improve-unique-constraints-in-schema/11325)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 2\
**Last updated:** [December 10, 2020, 1:43pm UTC](https://discuss.dgraph.io/t/how-to-improve-unique-constraints-in-schema/11325 "2020-12-10T13:43:52Z")

</div>

Looking for a possible way to improve a portion of my schema while it is young. I have notes and allow users to add reactions to the notes. Users are linked to contacts to hide user info while showing contact names. Wha…

---

## [How we set up version control of our schema on Slash](https://discuss.dgraph.io/t/how-we-set-up-version-control-of-our-schema-on-slash/11393)

<div class="topic-metadata">

**Author:** [@pbassham](https://discuss.dgraph.io/u/pbassham)\
**Replies:** 0\
**Last updated:** [November 9, 2020, 5:56pm UTC](https://discuss.dgraph.io/t/how-we-set-up-version-control-of-our-schema-on-slash/11393 "2020-11-09T17:56:08Z")

</div>

Summary: Configure Husky work with lint-staged and share your githooks in your repository Set up lint-staged to watch for changes to schema.graphql file use the slash-graphql-cli to push your schema to Slash with…

---

## [Dgraph Schema - Custom Properties?](https://discuss.dgraph.io/t/dgraph-schema-custom-properties/10675)

<div class="topic-metadata">

**Author:** [@mgroberts](https://discuss.dgraph.io/u/mgroberts)\
**Replies:** 4\
**Last updated:** [October 1, 2020, 5:32pm UTC](https://discuss.dgraph.io/t/dgraph-schema-custom-properties/10675 "2020-10-01T17:32:20Z")

</div>

Hi all, I’m new to DGraph and to Graph Databases generally so apologies if my terminology/knowledge isn’t great. One of the core design features of the software I want to build is that superusers are able to update the…

---

## [Alter Schema slower for v20](https://discuss.dgraph.io/t/alter-schema-slower-for-v20/10559)

<div class="topic-metadata">

**Author:** [@boedy](https://discuss.dgraph.io/u/boedy)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 8:38pm UTC](https://discuss.dgraph.io/t/alter-schema-slower-for-v20/10559 "2020-09-23T20:38:39Z")

</div>

I just swapped out a v1.2.3 instance for a v20.07.1 version. I currently only have it running on my development machine. I’m noticing that my integration tests are running about twice as slow compared to the v1.x version…

---

## [Polymorphism](https://discuss.dgraph.io/t/polymorphism/10425)

<div class="topic-metadata">

**Author:** [@spinelsun](https://discuss.dgraph.io/u/spinelsun)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 11:29am UTC](https://discuss.dgraph.io/t/polymorphism/10425 "2020-09-17T11:29:53Z")

</div>

Hey, Assuming this is my scheme: interface IAnimal{ id: ID! name: String! } type Cow implements IAnimal{ color: String! } type Pig implements IAnimal{ weight: Int! } type Horse implements IAnimal{ n…

---

## [Searching Schema in Slash](https://discuss.dgraph.io/t/searching-schema-in-slash/10025)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 2\
**Last updated:** [September 10, 2020, 2:22pm UTC](https://discuss.dgraph.io/t/searching-schema-in-slash/10025 "2020-09-10T14:22:04Z")

</div>

Report a Slash UI Bug What version of Dgraph are you using? v20.07.1-rc1-12-gbfa6277f Steps to reproduce the issue. Try to search the schema with Ctrl + f from the browser (Chrome in my case) Expected behaviour and act…

---

## [Support nested link and multiple link](https://discuss.dgraph.io/t/support-nested-link-and-multiple-link/10031)

<div class="topic-metadata">

**Author:** [@pandalive](https://discuss.dgraph.io/u/pandalive)\
**Replies:** 6\
**Last updated:** [September 5, 2020, 1:44pm UTC](https://discuss.dgraph.io/t/support-nested-link-and-multiple-link/10031 "2020-09-05T13:44:02Z")

</div>

I have the following schema: type User { id: String! @id name: String } type Group { id: String! @id owner: User members: \[Member\] @hasInverse(field: group) posts: \[Post\] @hasInverse(field: group…

---

## [Collaboration on Schema in Slash](https://discuss.dgraph.io/t/collaboration-on-schema-in-slash/9340)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 8\
**Last updated:** [August 28, 2020, 3:28pm UTC](https://discuss.dgraph.io/t/collaboration-on-schema-in-slash/9340 "2020-08-28T15:28:10Z")

</div>

When two devs are working different parts of the schema, is there any way to update just a type of a schema without the entire schema? I am worried that we will start overwriting each others schema updates if we are work…

---

## [Add pagination to schema query](https://discuss.dgraph.io/t/add-pagination-to-schema-query/8857)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 8:30am UTC](https://discuss.dgraph.io/t/add-pagination-to-schema-query/8857 "2020-07-03T08:30:41Z")

</div>

Moved from GitHub dgraph/5810 Posted by EnricoMi: Experience Report What you wanted to do I have a huge schema of 235k predicates and my application has to retrieve that schema from dgraph first.I am using schema { pr…

---

## [Support subtypes and subtype polymorphism](https://discuss.dgraph.io/t/support-subtypes-and-subtype-polymorphism/8800)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 2\
**Last updated:** [October 21, 2019, 3:21pm UTC](https://discuss.dgraph.io/t/support-subtypes-and-subtype-polymorphism/8800 "2019-10-21T15:21:03Z")

</div>

Moved from GitHub dgraph/4195 Posted by robsws: We would like to be able to define a taxonomy in the type system such that one type can be a child type of another. As a result, if you were to filter on the parent type,…

---

## [Create predicates from type fields](https://discuss.dgraph.io/t/create-predicates-from-type-fields/8795)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 4\
**Last updated:** [September 27, 2019, 7:02pm UTC](https://discuss.dgraph.io/t/create-predicates-from-type-fields/8795 "2019-09-27T19:02:29Z")

</div>

Moved from GitHub dgraph/4085 Posted by campoy: Experience Report It is confusing that when you declare a field in a type this is not taken into account automatically by the schema. What you wanted to do In issue #408…

---

## [Support arbitrary-precision numeric types](https://discuss.dgraph.io/t/support-arbitrary-precision-numeric-types/8746)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 3\
**Last updated:** [January 11, 2019, 3:40am UTC](https://discuss.dgraph.io/t/support-arbitrary-precision-numeric-types/8746 "2019-01-11T03:40:37Z")

</div>

Moved from GitHub dgraph/2107 Posted by malzzz: My use-case for dgraph deals almost exclusively with 256-bit uints. Are there any plans for bignum datatypes at any point in the future? If not, is there possibly a way…
