Commit Graph

23 Commits

Author SHA1 Message Date
Praveen Durairaj
a67346458d support any type for id column in ra-data-hasura (close #1443) (#1451) 2019-01-24 09:36:45 +05:30
Praveen Durairaj
964645cbb1 ra-data-hasura patch for get_many_reference (#1419)
* fix get_many_reference definition

* update package version

* update changelog and github url
2019-01-20 10:25:45 +05:30
Praveen Durairaj
2022091391 add react-admin data provider (close #783) (#1407) 2019-01-19 20:49:35 +05:30
Rishichandra Wawhal
c23fcc8a80 json2graphql update README.md (#1382) 2019-01-15 18:16:11 +05:30
Rishichandra Wawhal
92b071afdf json2graphql: clean up, update readme, add examples (#1375) 2019-01-15 17:10:29 +05:30
Praveen Durairaj
e929cc4402 accept query_file query param for preloading queries (#1185) 2018-12-12 12:46:13 +05:30
Praveen Durairaj
12231bc062 add env to handle graphql endpoint for graphiql-online (#1178)
[skip ci]
2018-12-11 14:31:46 +05:30
Rishichandra Wawhal
51abce2c1c do not create columns starting with __ in firebase2graphql (fix #1001) (#1002) 2018-11-13 16:12:41 +05:30
Praveen Durairaj
5b987a4acd update graphiql-online footer css (#967) 2018-11-02 16:00:16 +05:30
Rakesh Emmadi
f6ed169219 allow ordering using columns from object relationships (closes #463) (#672)
* allow ordering using columns from object relationships, close #463

* validate table fields in nested insert

* add tests

* add docs

* change 'table_order_by' type from enums to ordered map

* remove unwanted code from 'Schema.hs' file

* 'AnnGObject' is not list of field name and value tuple

* update docs for new order_by type

* use 'InsOrdHashMap' for 'AnnGObj'

* handle empty fields in order_by

* remove '_' prefixes for asc/desc

* fix the changed order_by syntax across the repo
2018-10-26 17:27:33 +05:30
Praveen Durairaj
7fa6203b4f seo update for graphiql-online (#857) 2018-10-26 08:28:51 +05:30
Praveen Durairaj
1266bbf354 add online graphiql to community tools (#716) 2018-10-25 14:57:02 +05:30
Russ Callahan
fc844bef01 update json2graphql readme (#761) 2018-10-16 17:20:51 +05:30
Rishichandra Wawhal
043b76bab7 sanitise data of special characters before inserting using json2graphql (#770) 2018-10-16 14:53:01 +05:30
Daniel P
b91704e3ca fix typos is multiple files (#728) 2018-10-15 12:29:51 +05:30
Rishichandra Wawhal
68c5f8ca85 firebase2graphql: add realtime section in readme (#674) 2018-10-08 15:25:28 +05:30
Rishichandra Wawhal
fbd220621d firebase2graphql: improve readme structure, update git and add more tests (#666) 2018-10-08 11:42:42 +05:30
Arpit Kushwaha
8454e70614 add some color to hearts (#656)
fill some colours in those colourless hearts
2018-10-05 23:46:29 +05:30
Rishichandra Wawhal
30273d354d improve normalization for firebase2graphql (#621) 2018-10-04 09:09:42 +05:30
Rishichandra Wawhal
0cf981ddf8 update firebase2graphql readme (#575) 2018-09-28 18:19:05 +05:30
Rishichandra Wawhal
bdb73fe6d1 add firebase2graphql to community tools (#573) 2018-09-28 17:45:22 +05:30
Rishichandra Wawhal
3d6732b678 change table and foreign-key naming conventions in json2graphql (#485)
Foreign keys will now be detected if a column name is `<table_name>_id`.

Earlier, foreign keys would be detected when column name was `<table_name - s>_id`. This was a problem because it placed restrictions on table names. Such restrictions were limiting us from importing complicated JSON databases.

Here are the examples of JSON sampel data for a user, post and comment schema as per new and old conventions:

Old convention:

```
{
    posts: [
        { id: 1, title: "Lorem Ipsum", views: 254, user_id: 123 },
        { id: 2, title: "Sic Dolor amet", views: 65, user_id: 456 },
    ],
    users: [
        { id: 123, name: "John Doe" },
        { id: 456, name: "Jane Doe" }
    ],
    comments: [
        { id: 987, post_id: 1, body: "Consectetur adipiscing elit" },
        { id: 995, post_id: 1, body: "Nam molestie pellentesque dui" }
    ]
}
```

New convention:

```
{
    post: [
        { id: 1, title: "Lorem Ipsum", views: 254, user_id: 123 },
        { id: 2, title: "Sic Dolor amet", views: 65, user_id: 456 },
    ],
    user: [
        { id: 123, name: "John Doe" },
        { id: 456, name: "Jane Doe" }
    ],
    comment: [
        { id: 987, post_id: 1, body: "Consectetur adipiscing elit" },
        { id: 995, post_id: 1, body: "Nam molestie pellentesque dui" }
    ]
};
``` 

@FrediBach I am not sure how this would affect [Blowson](https://github.com/FrediBach/json-data-extender). Can you provide some input?
2018-09-19 14:18:52 +05:30
Rishichandra Wawhal
68a2e0372f add json2graphql to community tools (#454) 2018-09-17 18:23:23 +05:30