How to use the mst-gql.MSTGQLObject.props function in mst-gql

To help you get started, we’ve selected a few mst-gql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mobxjs / mst-gql / examples / 5-nextjs / src / models / ModelBase.ts View on Github external
import { MSTGQLObject } from "mst-gql"
import { types } from "mobx-state-tree"

export const ModelBase = MSTGQLObject.props({
  $created: types.optional(types.Date, () => new Date())
})