Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to mount a tree of objects #6

Open
cmssantos opened this issue Nov 24, 2018 · 1 comment
Open

How to mount a tree of objects #6

cmssantos opened this issue Nov 24, 2018 · 1 comment

Comments

@cmssantos
Copy link

cmssantos commented Nov 24, 2018

Hi,
inner of object contract i want to show this:

contract{ development { block { unit { } } } }

any idea how to make..

i made this:

Contract: { async client(contract) { try { const contractClient = await admin .firestore() .doc(clients/${contract.clientId}) .get(); return contractClient.data() as Client; } catch (error) { throw new ApolloError(error); } }, async development(contract) { try { const contractDevelopment = await admin .firestore() .doc(developments/${contract.developmentId}) .get(); return contractDevelopment.data() as Development; } catch (error) { throw new ApolloError(error); } } }

for block and unit i don't no how to proceed.

@masonlouchart
Copy link

Did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants