SyncM8/syncm8

View on GitHub
server/src/gql/graphql.py

Summary

Maintainability
A
0 mins
Test Coverage
"""
GraphQL related python types, other than MongoDB models.

Keep in sync with schema.graphql (also with graphql.ts)
"""
from typing import TypedDict


class NewMatesInput(TypedDict):
    """New Mate Input class passed from client."""

    name: str
    lastSynced: str  # date gets converted to str


class MateAssignmentInput(TypedDict):
    """GQL Input for assigning mates to a different family."""

    mateId: str
    fromFamilyId: str
    toFamilyId: str