# Is there any demo written for multiple schema

**URL:** <https://discuss.dgraph.io/t/is-there-any-demo-written-for-multiple-schema/2180>\
**Category:** Users\
**Created:** [January 29, 2018, 9:36am UTC](https://discuss.dgraph.io/t/is-there-any-demo-written-for-multiple-schema/2180 "2018-01-29T09:36:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@chen](https://discuss.dgraph.io/u/chen)\
**Post date:** [January 29, 2018, 9:36am UTC](https://discuss.dgraph.io/t/is-there-any-demo-written-for-multiple-schema/2180/1 "2018-01-29T09:36:06Z")

</div>

Hello,  
I would like to support several kinds of entities. Is there any demo written by java to show the usage of multiple schema?

Please refer to page: [https://docs.dgraph.io/howto/#giving-nodes-a-type](https://docs.dgraph.io/howto/#giving-nodes-a-type)  
The documentation declared that we can specified node type, would you please provide a sample code for creation schema with type ?  
Take film , actor, director as example  
both film, actor and director could have name, how to diff name of film, name of actor in the schema?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Offirmo](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/offirmo/32/725_2.png) [@Offirmo](https://discuss.dgraph.io/u/Offirmo)\
**Post date:** [February 28, 2018, 6:33am UTC](https://discuss.dgraph.io/t/is-there-any-demo-written-for-multiple-schema/2180/2 "2018-02-28T06:33:36Z")

</div>

Seems I asked one of the questions you listed. See the answer here: [Can't understand doc section "giving nodes a type" - #3 by Offirmo](http://discuss.hypermode.com/t/cant-understand-doc-section-giving-nodes-a-type/2266/3)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [March 30, 2018, 6:33am UTC](https://discuss.dgraph.io/t/is-there-any-demo-written-for-multiple-schema/2180/3 "2018-03-30T06:33:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
