Loading views...
Hidra block exception, collection api init

Hidra block exception, collection api init

Date
Date
2020 Apr 28 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:56
Refs
Refs
alive false 면 loadpage chunk 표시하기 삭제된거라
 
notion image
노션처럼 이렇게 - 버튼에 neomorphism 적용해볼까 ㅎ
 

구현

notion image
관련 api 구현은 나중에 하고
 
 
 
들어올 수 있는 parameter 정하고 아니면 오류내기 - you can't change
 
  • alive false create는 origin 있을 때만 가능
    • update origin to create
  • alive patch 불가능
 
  • throw invalid data
How to make mongoose fail if field is not in schema?
I want mongoose fails if I try to save document with field which is not in schema. I know about strict option ( https://mongoosejs.com/docs/guide.html#strict), but it does not cover my needs. strict: true removes fields without warning. And strict: false allows to save everything (which is not good in long terms).
How to make mongoose fail if field is not in schema?
 
 
 
  • Create
    • Need
      • type
      • parent_table, parent_id should be in recursive input
    • Available & not need
      • properties - do not need
      • index - do not need & not real
    • Available only Server
      • history -inner
        bin - inner
        version - inner
        alive - inner
        content
         
 
  • Patch
    • Available & not need
      • properties
      • parent_table, parent_id
      • content
      • type
    • Available only Server
 
 
 
  • badrequest 추가
Errors | FeathersJS
npm install @feathersjs/errors --save The @feathersjs/errors module contains a set of standard error classes used by all other Feathers modules. Here are a few ways that you can use them: The following error types, all of which are instances of FeathersError, are available: ProTip: All of the Feathers plugins will automatically emit the appropriate Feathers errors for you.
  • schema 이상한놈 throw
How to make mongoose fail if field is not in schema?
I want mongoose fails if I try to save document with field which is not in schema. I know about strict option ( https://mongoosejs.com/docs/guide.html#strict), but it does not cover my needs. strict: true removes fields without warning. And strict: false allows to save everything (which is not good in long terms).
How to make mongoose fail if field is not in schema?
 
 
 
create, update 루프 검사
 

override 한 함수에서는 외부 호출과 내부호출의 차이점을 두기 위해 내부호출은 super만 쓰기

이걸로 위 문제 다 해결
 
 
 
  • some 으로 include로 비교 안되는 object 비교 가능 아래처럼
How to Check If an Array Includes an Object in JavaScript
How to Check If an Array Includes an Object in JavaScript
 
 
문서정리 version 6
 
 
 
 
 
 
 

Recommendations