{"blocks":[{"type":"paragraph","data":{"text":"Server"}},{"type":"codeTool","data":{"codeData":{"value":"viewof server = render(({ useSetter }) => {\n const { Input, Checkbox, Button,message } = Antd;\n const [messageApi, contextHolder] = message.useMessage(); \n const [server, setServer] = useState(\"http://localhost:8000\");\n\n useSetter(server);\n \n \n return (\n
\n {contextHolder} \n
\n setServer(e.target.value)}\n placeholder=\"Enter project\"\n />\n
\n\n
\n );\n});\n","pinCode":false,"dname":"336760db-c37b-4128-b8ef-c949ef860163","codeMode":"jsx"}}},{"type":"paragraph","data":{"text":"Category"}},{"type":"codeTool","data":{"codeData":{"value":"viewof category = render(({ useSetter }) => {\n const { Button } = Antd;\n \n \tconst onPull = async (item)=>{\n const command = `match (n:${item}) return n limit 100`\n \tquery(command)\n }\n \n if(!schema.categories){\n \treturn
No data
\n }\n return ;\n})","pinCode":false,"dname":"85b51bc4-262f-42e2-bc06-669f99df26f1","codeMode":"jsx"}}},{"type":"paragraph","data":{"text":"Relationship"}},{"type":"codeTool","data":{"codeData":{"value":"viewof relationships = render(({ useSetter }) => {\n const { Button } = Antd;\n \n \tconst onPull = async (item)=>{\n const command = `match (n)-[r:${item}]-(m) return * limit 100`\n \tquery(command)\n }\n \n if(!schema.relationships){\n \treturn
No data
\n } \n return ;\n})","pinCode":false,"dname":"c63e0d27-788d-4fa2-a618-0de282ea4021","codeMode":"jsx"}}},{"type":"codeTool","data":{"codeData":{"value":"viewof cypher = render(({useSetter}) => { \n const {Input,Button, Space, Select, Dropdown, Menu } = Antd\n const { TextArea } = Input;\n const {CaretDownOutlined} = AntdIcons\n const [value, setValue] = useState(`match (n)-[r]-(m) return * limit 1000`);\n const [cypherSnippets, setCypherSnippets] = useState(samples.samples);\n const [loadingSnippets, setLoadingSnippets] = useState(true);\n const [snippetError, setSnippetError] = useState(null);\n\n const onExecute = async () => {\n try{\n query(value)\n }catch(e){\n console.error(\"query error\",e)\n }\n };\n\n const onChange = (event) => {\n setValue(event.target.value);\n };\n\n const handleCypherSnippetSelect = (snippet) => {\n setValue(snippet.command)\n };\n\n const cypherSnippetMenu = (\n \n {\n cypherSnippets.map((snippet) => (\n handleCypherSnippetSelect(snippet)}>\n {snippet.name}\n \n ))\n }\n \n );\n\n return (\n
\n
\n