otomadb / graphql-api Goto Github PK
View Code? Open in Web Editor NEWGraphQL API of OTOMADB
License: MIT License
GraphQL API of OTOMADB
License: MIT License
雑にやりすぎている
いくらなんでも26桁は長すぎると思うので10桁ぐらいで良いと思う(特にVideo, Tagに関しては)
複雑になりすぎるので,updateVideoInNeo4jでVideoに対してタグなどを一斉に更新するというスタイルにする
遅いが,雑にesbuildとswcで試したがtop-level await周りでムチャクチャになった
タグの登録時には次が与えられる.
タグ名前空間
このとき,
フロント側で追加するときに無いと困る
#192 に関連して
input RegisterVideoInput {
primaryTitle: String!
extraTitles: [String!]
tags: [ID!]!
primaryThumbnail: String!
niconico: [String!] # 追加
}
URLが突っ込まれる
Mylist.isIncludesVideo
みたいな名前に変える(タグの場合に困る)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
node
, @types/node
)@prisma/client
, prisma
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@bufbuild/buf
, @bufbuild/protobuf
, @bufbuild/protoc-gen-es
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
docker-compose.prod.yml
postgres 15@sha256:ea40a028dd42740d6cff34135ff6b3119ff7ce0ed60120d992216456b5987fe7
neo4j 5.15@sha256:d9e2fb1ba398536e50d22ebc3d5d585baa086c1c0cf8e5b96bdc9e11e87e002a
docker-compose.test.yml
postgres 15@sha256:ea40a028dd42740d6cff34135ff6b3119ff7ce0ed60120d992216456b5987fe7
neo4j 5.15@sha256:d9e2fb1ba398536e50d22ebc3d5d585baa086c1c0cf8e5b96bdc9e11e87e002a
redis 7.2@sha256:66b2c641a6e16eeb188b64816f915a6313f15850d5dbea7c29736f59f9e5146c
docker-compose.yml
postgres 15@sha256:ea40a028dd42740d6cff34135ff6b3119ff7ce0ed60120d992216456b5987fe7
adminer sha256:b75eae89431e8469613b844e76382a26efc8601c17f446bcd81665bc87ca9a1f
neo4j 5.15@sha256:d9e2fb1ba398536e50d22ebc3d5d585baa086c1c0cf8e5b96bdc9e11e87e002a
getmeili/meilisearch v1.0@sha256:dd8162da4cebbdec1ab6176754cff941b04427e7f8df532896a920ec3d292d8a
redis 7.2@sha256:66b2c641a6e16eeb188b64816f915a6313f15850d5dbea7c29736f59f9e5146c
Dockerfile
node 20.11.1-slim@sha256:357deca6eb61149534d32faaf5e4b2e4fa3549c2be610ee1019bf340ea8c51ec
node 20.11.1-slim@sha256:357deca6eb61149534d32faaf5e4b2e4fa3549c2be610ee1019bf340ea8c51ec
.github/workflows/ci.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-node v4@60edb5dd545a775178f52524783378180af0d1f8
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-node v4@60edb5dd545a775178f52524783378180af0d1f8
postgres 15@sha256:ea40a028dd42740d6cff34135ff6b3119ff7ce0ed60120d992216456b5987fe7
neo4j 5.15@sha256:d9e2fb1ba398536e50d22ebc3d5d585baa086c1c0cf8e5b96bdc9e11e87e002a
redis 7.2@sha256:66b2c641a6e16eeb188b64816f915a6313f15850d5dbea7c29736f59f9e5146c
.github/workflows/docker-images.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
hadolint/hadolint-action v3.1.0@54c9adbab1582c2ef04b2016b760714a4bfde3cf
docker/setup-buildx-action v3@d70bba72b1f3fd22344832f00baa16ece964efeb
docker/login-action v3@e92390c5fb421da1463c202d546fed0ec5c39f20
docker/build-push-action v5@2cdde995de11925a030ce8070c3d77a52ffcf1c0
.node-version
node 20.11.1
package.json
@bufbuild/protobuf ^1.4.2
@connectrpc/connect ^1.1.3
@connectrpc/connect-node ^1.1.3
@devoxa/prisma-relay-cursor-connection ^3.0.0
@envelop/generic-auth ^7.0.0
@prisma/client 5.8.1
auth0 4.2.0
graphql ^16.6.0
graphql-scalars ^1.22.4
graphql-tag ^2.12.6
graphql-yoga ^5.0.0
ioredis ^5.3.1
jsonwebtoken ^9.0.0
jwks-rsa ^3.0.1
meilisearch ^0.34.0
neo4j-driver ^5.3.0
pg ^8.8.0
pino ^8.10.0
ulid ^2.3.0
zod ^3.19.1
@babel/core 7.23.9
@bufbuild/buf 1.28.1
@bufbuild/protoc-gen-es 1.6.0
@connectrpc/protoc-gen-connect-es 1.1.3
@graphql-codegen/cli 5.0.2
@graphql-codegen/client-preset 4.1.0
@graphql-codegen/schema-ast 4.0.2
@graphql-codegen/typescript 4.0.6
@graphql-codegen/typescript-resolvers 4.0.6
@graphql-tools/executor-http 1.0.9
@graphql-tools/schema 10.0.3
@graphql-tools/utils 10.0.13
@graphql-typed-document-node/core 3.2.0
@rollup/plugin-graphql 2.0.4
@types/node 20.11.30
@typescript-eslint/eslint-plugin 6.18.1
@typescript-eslint/parser 6.18.1
eslint 8.56.0
eslint-config-prettier 9.1.0
eslint-plugin-eslint-comments 3.2.0
eslint-plugin-n 16.6.2
eslint-plugin-simple-import-sort 10.0.0
eslint-plugin-unused-imports 3.0.0
eslint-plugin-vitest 0.3.26
graphql-schema-linter 3.0.1
lefthook 1.6.9
nodemon 3.0.3
npm-run-all 4.1.5
prettier 3.1.1
prisma 5.8.1
tsx 4.7.2
typescript 5.3.3
vitest 0.34.6
vitest-mock-extended 1.3.1
@parcel/watcher 2.3.0
Signup時にIconを作成しないのであればnullを入れておいてほしい(空の文字列で持つというのは違う気がするので)
なんでこの名前にしたのか忘れた
忘れるから
命名するときに思いつかなかったからhistoryになってるけどactivityのほうが妥当な気はする
原因:うっかりしていた
対策:気をつける
semitagとゴッチャゴチャになる
URLが長すぎて終わっているため
関連: #28
denoのときの名残でコレになってるけど微妙すぎる気がする
と思うがOptionalになっている
無意味タグの登録をAPIから行えるようにする
将来的にはモデレータ権限を持ったユーザだけが追加できるようにしたいが,一旦それは後で
LIKE句でどうにかしているが全角半角の表記ゆれとかにもきちんと対応していきたい
utils/types.ts
のResolverArgs
が全然間違っているらしく,第一引数にTParent
が来ることになっているが,実際には来ない(第一引数にやってくるのはTArgs
)
ちゃんとしたサーバー実装に移す
タグを付ける際に重複する事のないようクライアント側でチェックするが,ビデオ側にしかそういったものを実装していなかったのでタグの候補の数だけクエリを投げることになって良くなさすぎる
いくつかの操作には編集者権限を必要とするように認証を入れる
分かりづらすぎる
CIで3時間ぐらい引っかかってたときがあった
どうするの………?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.