- Published
- Author
- Vaibhav YadavSenior System Analyst
We can use git shortlog instead of git log to group commits by author using --group=author option.
At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
build:
stage: build
image: docker@sha256:the_sha
services:
- docker:dind@sha256:the_shaFields "cars" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.{
cars(filter: "name = Cars") {
edges {
node {
name
speed
}
}
}
cars {
edges{
node{
name
}
}
}
}{
slowCars: cars(filter: "Cars") {
edges {
node {
name
}
}
}
fastCars: cars {
edges{
node{
name
}
}
}
}aliases here. Aliases let us change the names of the data that is displayed in a query’s results. It is incredibly helpful when we need to fetch the same data using different filters.Fields "cars" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.{
cars(filter: "name = Cars") {
edges {
node {
name
speed
}
}
}
cars {
edges{
node{
name
}
}
}
}Pick Omit Partial NonNullable React.ComponentProps React.MouseEventHandler and special one React.PropsWithChildrenPropsWithChildren enables components to take both props and child elements as input.const Track = ({ children }:PropsWithChildren) => {
return (
{children}
);
};classnames, further conditions can be added depending on whether the initial condition is true or false.{icons &&
icons.map((icon: any, index: number) => {
return (
{icon.icon}
{icon.name}
);
})}index % 2 (modulus) evaluates to true, the class name col-span-4 will be added. The second className which is col-span-3 and it is added if the expression !(index % 2) evaluates to true. However the ! mark changes the Boolean to falsecol-span-4 is added when the index is even, whereas the class col-span-3 is added when the index is odd.Showing 48 to 50 of 82 results
Codemancers can bring your vision to life and help you achieve your goals