Skip to content

Conversation

ecaroth
Copy link

@ecaroth ecaroth commented Aug 22, 2024

This small PR adds support for optionally including a databaseId in your schema config, like so:

schema(($) => ({
            foor: $.collection<Foo>().sub({
                bar: $.collection<Bar>(),
            })
        }), {
            databaseId: 'my-database-id',
            // optionally specify unique databaseId for client or server options
            server: {app, databaseId: 'my-database-id'},
            client: {app, databaseId, databaseId: 'my-database-id'}
        }
    )

Other notes: Fixed a very small bug with unit test for averages and small errors with Options typing also

Copy link

@jdziadek jdziadek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants