Skip to content

Commit d1d2f54

Browse files
author
Igor Olshevsky
committed
extensions
1 parent d486f73 commit d1d2f54

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: example/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ const cde = require('cdecode/client');
33
console.log("FORCE PUBLISH! API: ", cde);
44
module.exports = {
55
activate: () => {
6+
const query = cde.gql`{ dummy }`;
7+
console.log('QUERY: ', query);
8+
9+
cde.apollo.query({ query })
10+
.then(data => console.log('APOLLO: ', data))
11+
.catch(data => console.log('APOLLO.ERROR: ', data));
12+
613
console.log("ACTIVATING! API: ", cde);
714
},
815
deactivate: () => {

0 commit comments

Comments
 (0)