Skip to content

Commit

Permalink
update the configuration.json to have a native mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed May 2, 2024
1 parent d346318 commit 55b07cc
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions static/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,39 @@
"description": null
}
},
"nativeMutations": {
"insert_artist_and_return_id": {
"sql": "INSERT INTO [dbo].[Artist] (ArtistId, Name) OUTPUT inserted.ArtistId VALUES ({{id}} as int, {{name}} as text)",
"columns": {
"ArtistId": {
"name": "ArtistId",
"type": "int",
"nullable": "nonNullable",
"description": null
},
"Name": {
"name": "Name",
"type": "varchar",
"nullable": "nullable",
"description": null
}
},
"arguments": {
"ArtistId": {
"name": "ArtistId",
"type": "int",
"nullable": "nonNullable",
"description": null
},
"Name": {
"name": "Name",
"type": "varchar",
"nullable": "nullable",
"description": null
}
}
}
},
"nativeQueries": {
"album_by_title": {
"sql": "SELECT * FROM [dbo].[Album] WHERE [Title] LIKE {{title}} AND [AlbumId] < {{id}}",
Expand Down Expand Up @@ -1483,7 +1516,6 @@
"operatorName": "IN",
"argumentType": "binary",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1521,7 +1553,6 @@
"operatorName": "IN",
"argumentType": "bit",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1559,7 +1590,6 @@
"operatorName": "IN",
"argumentType": "char",
"operatorKind": "in"

},
"_like": {
"operatorName": "LIKE",
Expand Down Expand Up @@ -1607,7 +1637,6 @@
"operatorName": "IN",
"argumentType": "date",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1645,7 +1674,6 @@
"operatorName": "IN",
"argumentType": "datetime",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1683,7 +1711,6 @@
"operatorName": "IN",
"argumentType": "datetime2",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1721,7 +1748,6 @@
"operatorName": "IN",
"argumentType": "datetimeoffset",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1759,7 +1785,6 @@
"operatorName": "IN",
"argumentType": "decimal",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1797,7 +1822,6 @@
"operatorName": "IN",
"argumentType": "float",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1835,7 +1859,6 @@
"operatorName": "IN",
"argumentType": "geography",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1873,7 +1896,6 @@
"operatorName": "IN",
"argumentType": "geometry",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1911,7 +1933,6 @@
"operatorName": "IN",
"argumentType": "hierarchyid",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1961,7 +1982,6 @@
"operatorName": "IN",
"argumentType": "int",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -1999,7 +2019,6 @@
"operatorName": "IN",
"argumentType": "money",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2037,7 +2056,6 @@
"operatorName": "IN",
"argumentType": "nchar",
"operatorKind": "in"

},
"_like": {
"operatorName": "LIKE",
Expand Down Expand Up @@ -2107,7 +2125,6 @@
"operatorName": "IN",
"argumentType": "numeric",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2145,7 +2162,6 @@
"operatorName": "IN",
"argumentType": "nvarchar",
"operatorKind": "in"

},
"_like": {
"operatorName": "LIKE",
Expand Down Expand Up @@ -2193,7 +2209,6 @@
"operatorName": "IN",
"argumentType": "real",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2231,7 +2246,6 @@
"operatorName": "IN",
"argumentType": "smalldatetime",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2269,7 +2283,6 @@
"operatorName": "IN",
"argumentType": "smallint",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2307,7 +2320,6 @@
"operatorName": "IN",
"argumentType": "smallmoney",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2345,7 +2357,6 @@
"operatorName": "IN",
"argumentType": "sql_variant",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2383,7 +2394,6 @@
"operatorName": "IN",
"argumentType": "sysname",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2443,7 +2453,6 @@
"operatorName": "IN",
"argumentType": "time",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2481,7 +2490,6 @@
"operatorName": "IN",
"argumentType": "timestamp",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2519,7 +2527,6 @@
"operatorName": "IN",
"argumentType": "tinyint",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2557,7 +2564,6 @@
"operatorName": "IN",
"argumentType": "uniqueidentifier",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2595,7 +2601,6 @@
"operatorName": "IN",
"argumentType": "varbinary",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down Expand Up @@ -2633,7 +2638,6 @@
"operatorName": "IN",
"argumentType": "varchar",
"operatorKind": "in"

},
"_like": {
"operatorName": "LIKE",
Expand Down Expand Up @@ -2681,7 +2685,6 @@
"operatorName": "IN",
"argumentType": "xml",
"operatorKind": "in"

},
"_lt": {
"operatorName": "<",
Expand Down

0 comments on commit 55b07cc

Please sign in to comment.