Skip to content

How to mount a tree of objects #6

@cmssantos

Description

@cmssantos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions