You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@id @GeneratedValue(strategy=GenerationType.IDENTITY) @JsonProperty @column(name="trade_id")
int tradeId;
Somehow, SPQR is concluding that this field should not Not Null, even though I am not explicitly declaring it as such.
input TradeInput {
tradeId: Int!
The trouble is, when I create a Trade object, the tradeID value is going to be generated by the database. So I never want to pass one in. However, I don't want to ignore the field entirely, because when I'm retrieving Trade objects, I want to include the ID.
Is there a way to do this? I'm using graphql-spqr-spring-boot-starter v 0.0.4
The text was updated successfully, but these errors were encountered:
(Also posted on StackOverflow: https://stackoverflow.com/questions/68957980/how-to-handle-identity-fields-in-graphql-spqr)
I have a field as follows:
@id @GeneratedValue(strategy=GenerationType.IDENTITY)
@JsonProperty
@column(name="trade_id")
int tradeId;
Somehow, SPQR is concluding that this field should not Not Null, even though I am not explicitly declaring it as such.
input TradeInput {
tradeId: Int!
The trouble is, when I create a Trade object, the tradeID value is going to be generated by the database. So I never want to pass one in. However, I don't want to ignore the field entirely, because when I'm retrieving Trade objects, I want to include the ID.
Is there a way to do this? I'm using graphql-spqr-spring-boot-starter v 0.0.4
The text was updated successfully, but these errors were encountered: