diff --git a/-I b/-I
new file mode 100644
index 0000000..e69de29
diff --git a/package.json b/package.json
index 9fff9e5..74aa6d6 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"@solidjs/router": "^0.4.3",
"@urql/core": "^3.0.3",
"graphql": "^16.6.0",
- "solid-js": "^1.5.1"
+ "solid-js": "^1.5.1",
+ "solid-urql": "^0.2.0"
}
}
diff --git a/src/App.tsx b/src/App.tsx
index 2f57b2f..3438ccf 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,8 +1,14 @@
import type { Component } from "solid-js";
+import { Provider } from "solid-urql";
+import client from "./graphql/client";
import AppRouter from "./routes";
const App: Component = () => {
- return ;
+ return (
+
+
+
+ );
};
export default App;
diff --git a/src/graphql/client.ts b/src/graphql/client.ts
index 2ad1fd4..976b0cf 100644
--- a/src/graphql/client.ts
+++ b/src/graphql/client.ts
@@ -1,5 +1,7 @@
-import { createClient } from "@urql/core";
+import { createClient } from "solid-urql";
const client = createClient({
- url: ''
-});
\ No newline at end of file
+ url: 'https://hasura.apps.artservis.al/v1/graphql'
+});
+
+export default client;
\ No newline at end of file
diff --git a/src/routes/views/auth/Register.tsx b/src/routes/views/auth/Register.tsx
index d91fb9c..50a0aaf 100644
--- a/src/routes/views/auth/Register.tsx
+++ b/src/routes/views/auth/Register.tsx
@@ -1,10 +1,20 @@
import type { Component } from "solid-js";
-const Register: Component = () => {
- return (
-
-
Register
-
- )
-}
+import { useAllUsersQuery } from "../../../graphql/generated/graphql";
-export default Register;
\ No newline at end of file
+const mockHasura = () => {
+ const getUsers = useAllUsersQuery();
+ console.log(getUsers);
+ };
+
+const Register: Component = () => {
+
+
+ return (
+
+
Register
+
+
+ );
+};
+
+export default Register;
diff --git a/yarn.lock b/yarn.lock
index 3f74082..8a29f02 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3084,6 +3084,11 @@ solid-refresh@^0.4.1:
"@babel/helper-module-imports" "^7.16.7"
"@babel/types" "^7.18.4"
+solid-urql@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/solid-urql/-/solid-urql-0.2.0.tgz#b6305480a4e46d176a195a4bc586291e19944a7a"
+ integrity sha512-3sLtHBbbfwANBTP0toZLdVeRKa4UJDBjgfP5rv2z4ip4+a8vBlfFHWy/5N6fgxBhQ0IdbuYKRAcJECkJd80auw==
+
source-map-js@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"