๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

@things-factory/scene-graphql

Package Overview
Dependencies
Maintainers
0
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@things-factory/scene-graphql

Graphql datasource component for things-scene

4.3.591
latest
Source
npm
Version published
Weekly downloads
30
-43.4%
Maintainers
0
Weekly downloads
ย 
Created
Source

graphql

graphql์„ ํ™œ์šฉํ•˜์—ฌ, ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๊ฑฐ๋‚˜ ์ˆ˜์ •ํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์žˆ๋‹ค.

graphql-client

properties: endpoint

์ž…๋ ฅ๋ฐ›์€ endpoint์— ๋ฐ์ดํ„ฐ๋ฅผ requestํ•˜๋Š” client ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์ปดํฌ๋„ŒํŠธ์—์„œ ์ฃผ๋กœ ์ฐธ์กฐํ•˜์—ฌ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ID๊ฐ’์„ ์ง€์ •ํ•ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

graphql-query

properties: client, period, query

graphql-client์˜ id๋ฅผ ์ฐธ์กฐํ•˜์—ฌ, ์ž…๋ ฅํ•œ ์ฃผ๊ธฐ๋Œ€๋กœ ํ•ด๋‹น ํด๋ผ์ด์–ธํŠธ์— graphql query๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ์š”์ฒญํ•˜์—ฌ ๋ฐ›์•„์˜ค๋Š” ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค.

graphql-quick-bind-query

properties: client, period, query

์œ„์˜ graphql-query์™€ ๋™์ผํ•œ ์—ญํ• ์„ ํ•˜์ง€๋งŒ, query์— quick-bind๊ธฐ๋Šฅ์„ ํ™œ์šฉํ•˜์—ฌ, ๋ณ€ํ™”ํ•˜๋Š” ๊ฐ’์„ ์ฟผ๋ฆฌ์— ๋„ฃ์–ด ์กฐํšŒํ•  ์ˆ˜ ์žˆ๋„๋ก ๋•๋Š” ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค. quick-bind ์‚ฌ์šฉ๋ฐฉ๋ฒ•์€ query๋ฌธ ๋‚ด์˜ ๋ณ€ํ™”ํ•˜๋Š” ์ฐธ์กฐ๊ฐ’์„ ์ž…๋ ฅํ•˜๋Š” ๋ถ€๋ถ„์— ${์ฐธ์กฐํ• ์ปดํฌ๋„ŒํŠธID.ํ”„๋กœํผํ‹ฐ๋ช…} ํ˜•์‹์œผ๋กœ ์ž…๋ ฅํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. period์— ๊ด€๊ณ„์—†์ด ๋ฐ์ดํ„ฐ๊ฐ€ ํŠน์ • ์ปดํฌ๋„ŒํŠธ ๊ฐ’์ด ๋ณ€๊ฒฝ๋  ๋•Œ๋งˆ๋‹ค ๊ฐ€์ ธ์˜ค๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ, graphql-quick-bind-query์ปดํฌ๋„ŒํŠธ์˜ value ๊ฐ’์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋„˜๊ฒจ์ฃผ๋ฉด, ๊ทธ๋•Œ๋งˆ๋‹ค ๋ฐ์ดํ„ฐ๋ฅผ ์ƒˆ๋กœ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

graphql-quick-bind-mutation

properties: client, updateGql

updateGql์— ๋”ฐ๋ผ ํ•ด๋‹น ํด๋ผ์ด์–ธํŠธ๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ์—…๋ฐ์ดํŠธํ•ด์ค๋‹ˆ๋‹ค. graphql-quick-bind-query์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ quick-bind ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

node package๋ฅผ ์„ค์น˜ํ•œ๋‹ค.

$ yarn

์‹คํ–‰

$ yarn serve $ yarn serve:dev

ํฌํŠธ๋ฅผ ๋ฐ”๊พธ๋ ค๋ฉด, -p 3001 ์‹์œผ๋กœ ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.

$ yarn serve $ yarn serve -p 3001

test in browser

http://localhost:3000

build

$ yarn build

typefilenamefortested
UMDthings-scene-graphql.jsmodern browserO
UMDthings-scene-graphql-ie.jsie 11O
ESMthings-scene-graphql.mjsmodern browserO

publish

$ yarn publish

FAQs

Package last updated on 13 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts