mirror of
https://github.com/Ratstail91/sineql-demo.git
synced 2026-05-05 23:30:11 +10:00
queryBook and createBook are working
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
const { queryWeather, createWeather, updateWeather, deleteWeather } = require('./weather-handlers');
|
||||
const { queryBook, createBook, updateBook, deleteBook } = require('./book-handlers');
|
||||
const { queryAuthor, createAuthor, updateAuthor, deleteAuthor } = require('./author-handlers');
|
||||
|
||||
//collate
|
||||
module.exports = {
|
||||
queryHandlers: {
|
||||
Weather: queryWeather,
|
||||
Book: queryBook,
|
||||
Author: queryAuthor,
|
||||
},
|
||||
|
||||
createHandlers: {
|
||||
Weather: createWeather,
|
||||
Book: createBook,
|
||||
Author: createAuthor,
|
||||
},
|
||||
|
||||
updateHandlers: {
|
||||
Weather: updateWeather,
|
||||
Book: updateBook,
|
||||
Author: updateAuthor,
|
||||
},
|
||||
|
||||
deleteHandlers: {
|
||||
Weather: deleteWeather,
|
||||
Book: deleteBook,
|
||||
Author: deleteAuthor,
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user