graphql-compose / graphql-compose/graphql-compose-mongoose

What is the type of an array of embedded docs?

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I have this schema:

```js

const MySchema = new Schema({
name: {type: String},
embedded: {type: [{foo: {type: String}, bar: {type: String}]}
});

```

I later on want to create resolver so I can updated `embedded` in a mutation. In the `addResolver` call to make the mutation, for the `args` setting, what do I put as the type for `embedded`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.