# Queries/Fragments Stored Server-Side

**URL:** <https://discuss.dgraph.io/t/queries-fragments-stored-server-side/8839>\
**Category:** Dgraph\
**Tags:** dgraph, status:accepted, kind:feature\
**Created:** [March 26, 2020, 1:22pm UTC](https://discuss.dgraph.io/t/queries-fragments-stored-server-side/8839 "2020-03-26T13:22:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 28, 2020, 1:37am UTC](https://discuss.dgraph.io/t/queries-fragments-stored-server-side/8839/2 "2020-04-28T01:37:52Z")

</div>

[MichaelJCompton](https://github.com/MichaelJCompton) _commented_ :

Yeah, I think some sort of ‘stored procedure’ system or some way of registering query blocks and then composing those into a query would be interesting.

It’s not clear if this should be supported for GraphQL± or as a way of extending a GraphQL API with custom queries.

We’ll add it to suggestions and consider it.

If you have more info on use cases to support this, that would be great.

---

_[View the full topic](https://discuss.dgraph.io/t/queries-fragments-stored-server-side/8839)._
