harperdb 4.2.0-beta.7 → 4.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,4 +59,4 @@ HarperDB will prompt you for configuration options during install, and then auto
59
59
 
60
60
  ***
61
61
 
62
- 2a5f43c19178567f52012d0027973bc49bf5e075
62
+ 43bef51bb365ea309e908c35718ef9493d6965e0
@@ -1,7 +1,7 @@
1
1
  # This defines the configuration of this application. Each defines a (sub) component that is loaded and
2
2
  # used for this application. These components can provide specific functionality and define how different
3
3
  # files in your app are loaded.
4
- REST: true # These provides the HTTP REST interface for all exported resources
4
+ rest: true # This provides the HTTP REST interface for all exported resources
5
5
  graphqlSchema: # These reads GraphQL schemas to define the schema of database/tables/attributes.
6
6
  files: '*.graphql' # looks for these files
7
7
  # path: / # exported queries are on the root path by default
@@ -0,0 +1,14 @@
1
+ const getAll = async (server, { hdbCore, logger }) => {
2
+ server.route({
3
+ url: '/getAll',
4
+ method: 'GET',
5
+ handler: async (request) => {
6
+ request.body= {
7
+ operation: 'sql',
8
+ sql: 'SELECT * FROM data.dogs'
9
+ };
10
+ return hdbCore.requestWithoutAuthentication(request);
11
+ }
12
+ });
13
+ }
14
+ export default getAll;