Skip to content
Discussion options

You must be logged in to vote

In the non-raw version the where statement treats the 2nd argument as a value and not a column reference. You need to write it as follows:

builder
    .from('collector_idr_catalog_items')
    .where(
        'collector_idr_catalog_items.item_id',
        Database.ref('wally_user_collector_idr_catalog_items.collector_idr_catalog_item_item_id'),
    )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rbartholomay
Comment options

Answer selected by rbartholomay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants