# RFC: Proposal for change in Type System

**URL:** <https://discuss.dgraph.io/t/rfc-proposal-for-change-in-type-system/17983>\
**Category:** Dgraph\
**Tags:** rfc\
**Created:** [November 16, 2022, 8:16pm UTC](https://discuss.dgraph.io/t/rfc-proposal-for-change-in-type-system/17983 "2022-11-16T20:16:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![amaster507](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amaster507/32/4123_2.png) [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Post date:** [November 17, 2022, 2:57am UTC](https://discuss.dgraph.io/t/rfc-proposal-for-change-in-type-system/17983/3 "2022-11-17T02:57:32Z")

</div>

We have finally arrived at the se conclusion, lol

See:

> [@The Good, The Bad, The Ugly - State of Dgraph](http://discuss.hypermode.com/t/the-good-the-bad-the-ugly-state-of-dgraph/17697/1):
>
> - Fix Dgraph’s `type` system so that the type is not a string value/predicate
> 
> [http://discuss.hypermode.com/t/how-does-type-system-work/17616?u=amaster507](http://discuss.hypermode.com/t/how-does-type-system-work/17616)
> 
> [http://discuss.hypermode.com/t/func-type-error-in-20-11-03-or-later/16237/29?u=amaster507](http://discuss.hypermode.com/t/func-type-error-in-20-11-03-or-later/16237/29)
> 
> [http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/24?u=amaster507](http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/24)
> 
> [http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/28?u=amaster507](http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/28)
> 
> > [@Ask Dgraph Founder Anything](http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/25):
> >
> > If one type has billions of nodes, then instead of using `type(X)`, would be better to retrieve a field which only belongs to that type of node. Then check the existence of that to determine if the type is legit or not.

Here is the main gist of my thoughts:

> [@Ask Dgraph Founder Anything](http://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/28):
>
> I have read in detail your other latest blog post: It was so mesmerizing. Your engineering mind is exceptional!! exploding_head The optimization improvements are terrific for a database that already touts ingestion speeds keeping up with major databases. And then I saw the type problem, and you confirmed the problem with indexes. So, what if, types weren’t indexes, they were edges?? I can hear Chewxy correcting me already, that everything is already an edge, it is [turtles all the way do…](https://en.wikipedia.org/wiki/Turtles_all_the_way_down)

---

_[View the full topic](https://discuss.dgraph.io/t/rfc-proposal-for-change-in-type-system/17983)._
