Open Hong-Xiang opened 3 years ago
A view would be the quickest workaround!
But what to do if I want to use xmin in mutation to prevent update changed row?
Hi,
Maybe can we use increment operators (_inc) to manage a "row_version" column since the _inc query is guaranteed to run atomically? The aim is to add row_version in the WHERE clause to ensure the row hasn't changed between states.
@tirumaraiselvan What do you think?
Jonathan
System columns like
xmin
seems not exposed to GraphQL api, at least for default settings. It seems we can not add columnxmin
to GraphQL schema via web console. Although we can define view with system columns for all tables, it might be more convenient if we can just use the original table.Some times system columns may be useful, e.g.
xmin
as concurrency tokens.