Hello. I’ve been thinking about releasing the app ...
# prisma-whats-new
k
Hello. I’ve been thinking about releasing the app im writing as opensource. Not that it would be usable by anyone but maybe someone can learn something. Is there a way to export my graph.cool schema into something I can use with graphql-up? would be awesome to have that with the readme..
❤️ 2
🙏 2
n
@kimf cheers! You can use the export feature in the project settings tab
s
That would be super cool. Make sure to share it in here 🙂
k
Cool thanks. Will share for sure
n
https://www.graph.cool/forum/c/projects here's a good place to share your projects 🙂
k
hm, I wonder if I could re-use that schema with flow and/or propTypes somehow.. would sure remove a lot of boilerplate
n
@kitze I saw you tweet about getting flow types from a schema, did you learn something related to that?
k
n
great 👍
k
i tried apollo-codegen but didn’t work right for me
but i don’t like some of the output
for example if something is not mandatory in the apollo server schema
the generated type is
/** */ instruction: ?string;
but it still complains if you don’t pass that parameter in the object
i’m not sure if the lib is buggy or i’m not proficient at flow 🙂
k
Managed to generate a schema.flow.js, I’m also completely new to flow, so will be interesting