Axinom Mosaic Libraries
    Preparing search index...
    • Factory function to create a makeExtendSchemaPlugin that adds a subscription endpoint for specific entity.

      Parameters

      • mainTableName: string

        name of the table in the database without schema

      • typeName: string

        name of the GraphQL type that is generated by postgraphile for mainTableName table

      • gqlIdDataType: "UUID" | "Int" = 'Int'

        optional parameter to set an ID type for the endpoint. Supported types are Int and UUID. Default is Int.

      Returns Plugin