API Reference | fast-check | Property based testing framework
    Preparing search index...

    Type Alias EntityGraphRelations<TEntityFields>

    EntityGraphRelations: {
        [TEntityName in keyof TEntityFields]: {
            [TField in string]: Relationship<keyof TEntityFields>
        }
    }

    Defines all relationships between entity types for entityGraph.

    This is the second argument to entityGraph and specifies how entities reference each other. Each entity type can have zero or more relationship fields, where each field defines a link to other entities.

    Type Parameters

    • TEntityFields
    {
    employee: {
    manager: { arity: '0-1', type: 'employee' },
    team: { arity: '1', type: 'team' }
    },
    team: {}
    }

    Since 4.5.0