Skip to content

How to inject a raw property #40

Answered by rubensworks
jaxoncreed asked this question in Q&A
Discussion options

You must be logged in to vote

I assume you're using the generator in the solid server.
If so, it will generate parameters for all fields (SomeComponent:_someString, SomeComponent:_someNumber, SomeComponent:_someJson_a, ...)
You can find the exact param identifiers inside the autogenerated components folder.

In that case, instantiating it via a config file happens in the standard way.
So here this would look something like:

{
  "@id": "urn:something",
  "@type": "SomeComponent",
  "SomeComponent:_someString": "abc",
  "SomeComponent:_someNumber": 123,
  "SomeComponent:_someJson_a": "def",
  ...
}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rubensworks
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rubensworks
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #33 on January 18, 2021 08:33.