Rakesh Emmadi
ae63ed9603
simplify SQL generated for _eq and _neq operators in GraphQL API ( #1466 )
2019-01-25 00:04:44 +05:30
Vamshi Surabhi
5514b40de2
dependencies of object relationship now includes remote table, closes #1441 ( #1442 )
2019-01-24 18:56:13 +05:30
nizar-m
916caf1575
add flag to disable prepared statements ( close #1392 ) ( #1396 )
2019-01-18 19:50:41 +05:30
Rakesh Emmadi
d91d7e658a
optimise 'run_sql' query, closes #1362 ( #1406 )
2019-01-18 16:15:59 +05:30
Rakesh Emmadi
7ff1c8829a
add PostGIS operators in boolean expressions ( closes #1051 ) ( #1372 )
2019-01-17 11:51:38 +05:30
Nathan Stitt
1b9540f996
allow specifying network interface with "server-host" option ( #1280 )
...
* allow specifying network interface with "server-host" option
* store host value as a HostPreference
* document server-host options
2019-01-11 16:37:13 +05:30
Rakesh Emmadi
1008c08420
accept null and empty values for relationships during insert, closes #1352
2019-01-11 12:52:58 +05:30
Rakesh Emmadi
41e487d203
fix auth hook mode env var ( fix #1270 ) ( #1285 )
...
Support HASURA_GRAPHQL_AUTH_HOOK_MODE env var for --auth-hook-mode flag.
Drop support for HASURA_GRAPHQL_AUTH_HOOK_TYPE env var in next major
update (beta/stable)
2019-01-04 12:12:36 +05:30
Vamshi Surabhi
380fdad468
update constraint enum types when a new constraint is added ( #1287 )
...
* update metadata when constraints on a table are altered, fix #240
* capture only unique or primary constraints in tableinfo
2019-01-03 09:28:12 +05:30
Rakesh Emmadi
4d9d1505dd
improve startup logging, close #1236 ( #1258 )
2019-01-02 16:54:17 +05:30
Vamshi Surabhi
be1d9414f8
diff's query should account for table having no columns ( #1256 )
2018-12-21 15:24:22 +05:30
Vamshi Surabhi
ea4d2644e8
local console during development ( #1252 )
...
* console now works on local builds of the server
1. local console assets can be served at /static/ by a build time flag
'local-console'. This can be set with stack as follows:
`stack build --flag graphql-engine:local-console`
2. the --root-dir option is removed which was used as a temporary hack
for serving graphiql
3. remove server's graphiql source code
2018-12-21 13:21:02 +05:30
Rakesh Emmadi
63acd0e7b2
generate aggregate order by types only if relevant columns are present, closes #1243 ( #1248 )
2018-12-20 19:31:54 +05:30
Rakesh Emmadi
d4e6ffcae8
revert back to older cli options parser type ( #1231 )
2018-12-19 17:08:33 +05:30
Vamshi Surabhi
c28fbd3f98
faster retrieval of table information from postgres ( #1235 )
2018-12-19 16:11:06 +05:30
Vamshi Surabhi
8feff0daca
clear event_triggers when clear_metadata is called, closes #1232 ( #1233 )
2018-12-19 12:04:27 +05:30
Rakesh Emmadi
b5bbb966f2
add consolePath in console.html template ( #1222 )
...
Server templates `consolePath` key in `window.__env` object in console html template.
If server is hit at `/console/table/author` then `window.__env` in served html looks like
```
{
consoleMode: "server",
urlPrefix: "/console",
consolePath: "/console/table/author",
isAccessKeySet: true
}
```
2018-12-18 15:09:01 +05:30
Rakesh Emmadi
3026c49087
apply update permissions for upsert mutations ( #628 )
2018-12-15 21:40:29 +05:30
Tirumarai Selvan
6de17b303f
drop trigger functions on updating event triggers ( #1214 )
2018-12-15 10:35:29 +05:30
Rakesh Emmadi
708a29fc89
refactor server cli code, add more cli options & version command ( closes #51 , #144 , #1090 , #1195 ) ( #1200 )
2018-12-14 08:51:41 +05:30
Vamshi Surabhi
ec8b2c80b5
refactor to remove warnings especially with orphan instances ( #1163 )
...
* remove phase one/two distinction and hdbquery typeclass
* move extensions to default-extensions
* switch to LazyTx which only acquires a connection if needed
* move defns from TH module into Ops module
* remove tojson orphan instance for http exception
* remove orphan instance for dmlp1
* getTopLevelNodes will not throw any exceptions
2018-12-13 12:56:15 +05:30
Rakesh Emmadi
ff6c95c2f8
allow ordering with aggregated fields ( close #1039 ) ( #1042 )
2018-12-12 18:28:39 +05:30
Anon Ray
77cbf12bb7
merge types with same structure in remote schema ( closes #1112 , #1135 ) ( #1145 )
2018-12-12 17:31:18 +05:30
Rakesh Emmadi
9fbd407374
parse graphql input objects and arrays as scalar values ( close #1132 ) ( #1137 )
2018-12-04 19:51:58 +05:30
Rakesh Emmadi
29ba490296
conform to graphql subscription and error spec ( close #1056 , close #1059 ) ( #1126 )
2018-12-04 19:07:38 +05:30
Rakesh Emmadi
3ea20bc4d7
allow authentication webhook with POST ( close #1138 ) ( #1147 )
2018-12-03 16:49:08 +05:30
Rakesh Emmadi
1e896a9c42
handle null values for input arguments, fix #1113 ( #1123 )
2018-11-27 17:54:51 +05:30
Anon Ray
0d14c13f98
metadata should be backwards compatible for remote schemas ( fix #1120 ) ( #1121 )
2018-11-27 16:56:10 +05:30
Rakesh Emmadi
8df23ad6c9
use postgres IN experssion for _in operator ( fix #1109 ) ( #1111 )
2018-11-26 15:39:55 +05:30
Anon Ray
512ee6fb9f
adds basic support for remote schemas/schema stitching ( #952 )
2018-11-23 18:32:46 +05:30
Rakesh Emmadi
58fe579497
support Postgres's DISTINCT ON ( close #1040 ) ( #1099 )
2018-11-23 07:23:56 +05:30
Dimitrios Mavrommatis
ef6e53a407
change descending ordering to nulls first ( fix #1008 ) ( #1009 )
2018-11-22 10:28:18 +05:30
Rakesh Emmadi
030f094de9
handle empty array for _in and _nin operators, fix #1075 ( #1076 )
2018-11-21 12:28:29 +05:30
Vamshi Surabhi
47dcae1614
fix sql generation for boolean expressions, closes #853 ( #1037 )
...
When using self referential relationships in boolean expressions, the exists clause incorrectly uses the table names to qualify columns which will be the same for parent table and the child table. This is now fixed by generating unique aliases as we traverse down the relationships.
2018-11-16 18:10:23 +05:30
Rakesh Emmadi
1539d6b5a6
server port can be set with HASURA_GRAPHQL_SERVER_PORT env variable, closes #1033 ( #1038 )
2018-11-15 10:25:39 +05:30
Rakesh Emmadi
b719e82e89
add statistical aggregate operations and count on columns ( close #1028 ) ( #1029 )
2018-11-14 18:29:59 +05:30
Tirumarai Selvan
317efb81f1
event triggers: take webhook url from env ( close #966 ) ( #968 )
2018-11-14 12:43:01 +05:30
Rakesh Emmadi
9af591e2cb
remove x-hasura-access-key header from logs ( fix #1016 ) ( #1017 )
2018-11-13 14:05:44 +05:30
Tirumarai Selvan
d4d31838cb
quote function and trigger names, allow hyphen in trigger name ( #1012 )
2018-11-13 11:28:55 +05:30
Rakesh Emmadi
8c1700e76f
improve SQL generation for '_in' operation ( close #1013 ) ( #1014 )
2018-11-12 18:57:47 +05:30
Rakesh Emmadi
80de0e019a
do not generate prefix for column identifiers in agg select, fix #1004 ( #1005 )
2018-11-12 12:58:46 +05:30
Rakesh Emmadi
999580481c
allow specifying a list of columns that can be inserted ( close #250 ) ( #917 )
2018-11-02 20:38:38 +05:30
Rakesh Emmadi
0e9d6994ac
refactor nested insert mutation and fix returning ( fix #844 ) ( #852 )
...
* improved nested insert execution logic
* integrate error path, improve executing 'withExp' and improve tests
* add more readable types in '/Resolve/Insert.hs'
* set conflict context just before executing WITH expression
2018-11-02 19:31:01 +05:30
Rakesh Emmadi
1a91399298
extract session variables from relational bool expression ( fix #960 ) ( #961 )
2018-11-02 15:06:33 +05:30
Rakesh Emmadi
0803738df1
refactor select query generation ( #941 )
2018-10-31 18:21:20 +05:30
Tirumarai Selvan
c5c2ed2389
give precedence to retry-after header over retry conf ( #954 )
2018-10-31 17:22:41 +05:30
Tirumarai Selvan
b40807c9ec
change type of fetch interval to milliseconds ( #939 )
2018-10-30 20:50:18 +05:30
Vamshi Surabhi
58582be644
fix parsing webhook response, closes #890 ( #894 )
2018-10-28 22:01:24 +05:30
Tirumarai Selvan
baf7c493bc
respect retry-after header on event trigger response ( #525 )
2018-10-26 21:58:03 +05:30
Vamshi Surabhi
8b0082eac1
clean up user variables parsing logic and fix explain api ( #869 )
2018-10-26 21:27:22 +05:30