# Can we sepearate files for databse schema & query?

**URL:** https://community.apollographql.com/t/can-we-sepearate-files-for-databse-schema-query/6016
**Category:** Client SDKs
**Tags:** client
**Created:** [March 27, 2023, 12:26pm UTC](https://community.apollographql.com/t/can-we-sepearate-files-for-databse-schema-query/6016 "2023-03-27T12:26:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Harshad\_Vala](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/harshad_vala/32/4106_2.png) [@Harshad\_Vala](https://community.apollographql.com/u/Harshad_Vala)
#### Post date: [March 27, 2023, 12:26pm UTC](https://community.apollographql.com/t/can-we-sepearate-files-for-databse-schema-query/6016/1 "2023-03-27T12:26:53Z")

</div>

can we modify codegen to generate database schema 60+ lines in one file, and queries which reference the schema in another file?

---

<div class="post-metadata">

### Author: ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)
#### Post date: [March 27, 2023, 6:55pm UTC](https://community.apollographql.com/t/can-we-sepearate-files-for-databse-schema-query/6016/2 "2023-03-27T18:55:46Z")

</div>

Hi @Harshad_Vala - which client code generation are you referring to, Kotlin, iOS or Web?

---

<div class="post-metadata">

### Author: ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)
#### Post date: [February 6, 2025, 8:49pm UTC](https://community.apollographql.com/t/can-we-sepearate-files-for-databse-schema-query/6016/3 "2025-02-06T20:49:05Z")

</div>


